test: allow installer runs from fork branches

This commit is contained in:
yellowcooln committed 2026-08-29 15:47:53 -04:00
1 parent 4e8be755b8
commit 403151247b
2 files changed
+9 -2

No files matched your search

+2 -2
View File
@@ -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
+7
View File
@@ -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()