mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
add extra debug info to onroad test (#30067)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user