diff --git a/app/tests/test_hub_update_boot_staging.py b/app/tests/test_hub_update_boot_staging.py index 3e9e5bf..df92a81 100644 --- a/app/tests/test_hub_update_boot_staging.py +++ b/app/tests/test_hub_update_boot_staging.py @@ -6,8 +6,12 @@ HUB_NIX = Path(__file__).resolve().parents[2] / "modules" / "core" / "sovran-hub def _section(source: str, start: str, end: str) -> str: - start_idx = source.index(start) - end_idx = source.index(end, start_idx) + start_idx = source.find(start) + if start_idx == -1: + raise AssertionError(f"Expected section start not found: {start!r}") + end_idx = source.find(end, start_idx) + if end_idx == -1: + raise AssertionError(f"Expected section end not found: {end!r}") return source[start_idx:end_idx] diff --git a/modules/core/sovran-hub.nix b/modules/core/sovran-hub.nix index 12e9695..719d90f 100644 --- a/modules/core/sovran-hub.nix +++ b/modules/core/sovran-hub.nix @@ -146,7 +146,7 @@ let echo "" if [ "$RC" -eq 0 ]; then - echo "── Step 2/3: nixos-rebuild boot (stage next reboot) ─" + echo "── Step 2/3: nixos-rebuild boot (stage next reboot) ──" BOOT_OUT=$(nixos-rebuild boot --flake /etc/nixos --print-build-logs \ --option connect-timeout 10 \ --option stalled-download-timeout 90 \