From a9da44c5bcdba7cfdf747fcc37cfaaa30fe839b6 Mon Sep 17 00:00:00 2001 From: Jiaxing Hu Date: Fri, 30 Oct 2026 20:04:07 +1300 Subject: [PATCH] Let the line test retry rfi like the line does On macOS CI the line ran db, rfi, rfi, wl, rd: a device poll still in flight made the first rfi fail, and the line retried it as designed (up to RFI_ATTEMPTS) and finished the board. The test only accepted one rfi and failed #78's run. Accept consecutive rfi retries; the order of the other steps is still checked exactly. --- tests/smoke.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/smoke.py b/tests/smoke.py index b0d0397..3c8e7d4 100644 --- a/tests/smoke.py +++ b/tests/smoke.py @@ -1823,7 +1823,11 @@ def check_production_line_real_commands(app): # -v (version at start-up) and a device poll (ld, rci) that may # slip in before detection stops aren't the line's. ran = [c for c in f.read().split() if c not in ("-v", "ld", "rci")] - if ran != ["db", "rfi", "wl", "rd"] or line.ok != 1: + # Such a poll can also make the first rfi fail; the line retries + # it (RFI_ATTEMPTS), which is what it's for. + steps = [c for i, c in enumerate(ran) if not (c == "rfi" and i and ran[i - 1] == "rfi")] + if steps != ["db", "rfi", "wl", "rd"] or ran.count("rfi") > production.RFI_ATTEMPTS \ + or line.ok != 1: errors.append(f"line with real commands ran {ran}, ok {line.ok}, state {line.state}") finally: production.AFTER_DB_MS = real_delay