From 19611be54d4db9e1588d956b0377f670792de85c Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Fri, 23 Oct 2026 10:11:24 +0000 Subject: [PATCH] W3BS OS 1.2 test: match RC=0 and installer warnings anywhere in the console output Terminal escape codes precede RC=0 on the serial console, so the line-anchored check missed it (the installs succeeded). Checked against the failed run's log text. Co-Authored-By: Claude Opus 5.5 --- os/debian/test/dtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/debian/test/dtest.py b/os/debian/test/dtest.py index 2b31678..7987e64 100644 --- a/os/debian/test/dtest.py +++ b/os/debian/test/dtest.py @@ -35,7 +35,7 @@ def check(name, ok, detail=""): rc, o = vm.sh(f"w3bs-os-install --defaults --disk /dev/vda --yes --no-reboot --serial-console --password-file /tmp/pw " f"--domain ci.example.test {flags} > /tmp/o 2>&1; echo RC=$?; grep -E 'warning|FAILED|installed on' /tmp/o", a.timeout) # The console echoes the command (which itself says 'warning'): count the installer's lines only. - check("install", re.search(r"^RC=0\s*$", o, re.M) is not None and re.search(r"^warning:", o, re.M) is None, o) + check("install", re.search(r"RC=0\b", o) is not None and re.search(r"warning: ", o) is None, o) if "RC=0" not in o: _, t = vm.sh("tail -40 /var/log/w3bs-os-install.log", 60); print(t) finally: