Skip to content

Commit 37e3f66

Browse files
committed
ui replay: show updater checking state on software page
1 parent e3ba649 commit 37e3f66

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

openpilot/selfdrive/ui/tests/diff/replay_script.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ def setup_update_available(available: bool = True) -> None:
138138
params.remove("UpdaterTargetBranch")
139139

140140

141+
def set_updater_state(state: str) -> None:
142+
Params().put("UpdaterState", state, block=True)
143+
144+
141145
def setup_calibration_params() -> None:
142146
params = Params()
143147
# live calibration
@@ -479,6 +483,8 @@ def type_keyboard() -> None:
479483
# === Settings - Software ===
480484
script.setup(lambda: setup_update_available(False), wait_after=0) # start with no update available
481485
script.click(278, 720) # software
486+
script.setup(lambda: set_updater_state("checking...")) # updater mid-check
487+
script.setup(lambda: set_updater_state("idle"), wait_after=0)
482488
for _ in range(2):
483489
script.click(720, 120) # toggle current release notes
484490
script.setup(setup_update_available) # set update available

0 commit comments

Comments
 (0)