mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
make sure boardd loopback test can run standalone
old-commit-hash: 0ac2f6c47052f50ebb6eb05381a74135c1cec885
This commit is contained in:
Regular → Executable
+5
-2
@@ -30,11 +30,10 @@ def reset_panda(fn):
|
||||
os.environ['STARTED'] = '1'
|
||||
os.environ['BOARDD_LOOPBACK'] = '1'
|
||||
os.environ['PARAMS_PATH'] = PARAMS
|
||||
|
||||
@reset_panda
|
||||
@with_processes(['boardd'])
|
||||
def test_boardd_loopback():
|
||||
|
||||
|
||||
# wait for boardd to init
|
||||
spinner = Spinner()
|
||||
time.sleep(2)
|
||||
@@ -81,3 +80,7 @@ def test_boardd_loopback():
|
||||
assert not len(sent_msgs[bus]), f"loop {i}: bus {bus} missing {len(sent_msgs[bus])} messages"
|
||||
|
||||
spinner.close()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_boardd_loopback()
|
||||
|
||||
Reference in New Issue
Block a user