From 201cdb5bf9e45ec86d4bf3d1759bd3ec6ad74566 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Jul 2026 17:40:29 +0000 Subject: [PATCH] Polish staged-update test and log header formatting --- app/tests/test_hub_update_boot_staging.py | 8 ++++++-- modules/core/sovran-hub.nix | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) 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 \