Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,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
Expand Down
Loading