add extra debug info to onroad test (#30067)

This commit is contained in:
Adeeb Shihadeh
2023-09-26 16:11:26 -07:00
committed by GitHub
parent 6d5f4f149d
commit fa06a69101
+2 -2
View File
@@ -16,7 +16,7 @@ def test_time_to_onroad():
proc = subprocess.Popen(["python", manager_path])
start_time = time.monotonic()
sm = messaging.SubMaster(['controlsState', 'deviceState'])
sm = messaging.SubMaster(['controlsState', 'deviceState', 'carEvents'])
try:
# wait for onroad
with Timeout(20, "timed out waiting to go onroad"):
@@ -38,7 +38,7 @@ def test_time_to_onroad():
# once we're enageable, must be for the next few seconds
for _ in range(500):
sm.update(100)
assert sm['controlsState'].engageable
assert sm['controlsState'].engageable, f"events: {sm['carEvents']}"
finally:
proc.terminate()
if proc.wait(60) is None: