mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-10-30 19:51:59 +01:00
test: allow installer runs from fork branches
This commit is contained in:
1 parent
4e8be755b8
commit
403151247b
2 files changed
+9
-2
No files matched your search
@@ -11,8 +11,8 @@
|
||||
set -euo pipefail
|
||||
|
||||
# ── Defaults ───────────────────────────────────────────────────────────────
|
||||
REPO="https://github.com/openhop-dev/openhop_repeater.git"
|
||||
BRANCH="dev"
|
||||
REPO="${OPENHOP_REPO:-https://github.com/openhop-dev/openhop_repeater.git}"
|
||||
BRANCH="${OPENHOP_BRANCH:-dev}"
|
||||
CT_TEMPLATE="debian-13-standard"
|
||||
CT_RAM=1024
|
||||
CT_SWAP=512
|
||||
|
||||
@@ -15,6 +15,13 @@ def test_proxmox_installer_uses_debian_13() -> None:
|
||||
assert "Debian 12" not in script
|
||||
|
||||
|
||||
def test_installer_allows_explicit_repository_and_branch_for_fork_testing() -> None:
|
||||
script = INSTALLER.read_text()
|
||||
|
||||
assert 'REPO="${OPENHOP_REPO:-https://github.com/openhop-dev/openhop_repeater.git}"' in script
|
||||
assert 'BRANCH="${OPENHOP_BRANCH:-dev}"' in script
|
||||
|
||||
|
||||
def test_ch341_host_rule_is_opt_in() -> None:
|
||||
script = INSTALLER.read_text()
|
||||
|
||||
|
||||
Reference in new issue
Block a user