disable cpu usage test until CAN replay hw is fixed

albatross
Adeeb Shihadeh 2020-12-31 15:01:38 -08:00
parent 59d7c5e64a
commit a01a2ecc24
2 changed files with 5 additions and 6 deletions

2
Jenkinsfile vendored
View File

@ -114,7 +114,7 @@ pipeline {
["build", "SCONS_CACHE=1 scons -j4"],
["test athena", "nosetests -s selfdrive/athena/tests/test_athenad_old.py"],
["test manager", "python selfdrive/test/test_manager.py"],
["test cpu usage", "cd selfdrive/test/ && ./test_cpu_usage.py"],
//["test cpu usage", "cd selfdrive/test/ && ./test_cpu_usage.py"],
["build devel", "cd release && CI_PUSH=${env.CI_PUSH} ./build_devel.sh"],
["test car interfaces", "cd selfdrive/car/tests/ && ./test_car_interfaces.py"],
["test spinner build", "cd selfdrive/ui/spinner && make clean && make"],

View File

@ -71,14 +71,13 @@ def test_cpu_usage():
manager_proc = subprocess.Popen(["python", manager_path])
try:
proc_sock = messaging.sub_sock('procLog', conflate=True, timeout=2000)
cs_sock = messaging.sub_sock('controlsState', conflate=True)
cs_sock = messaging.sub_sock('controlsState')
# wait until everything's started
msg = None
start_time = time.monotonic()
while time.monotonic() - start_time < 240:
msg = messaging.recv_sock(cs_sock, wait=True)
if msg is not None:
break
while msg is None and time.monotonic() - start_time < 240:
msg = messaging.recv_sock(cs_sock)
# take first sample
time.sleep(15)