disable cpu usage test until CAN replay hw is fixed
parent
59d7c5e64a
commit
a01a2ecc24
|
@ -114,7 +114,7 @@ pipeline {
|
||||||
["build", "SCONS_CACHE=1 scons -j4"],
|
["build", "SCONS_CACHE=1 scons -j4"],
|
||||||
["test athena", "nosetests -s selfdrive/athena/tests/test_athenad_old.py"],
|
["test athena", "nosetests -s selfdrive/athena/tests/test_athenad_old.py"],
|
||||||
["test manager", "python selfdrive/test/test_manager.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"],
|
["build devel", "cd release && CI_PUSH=${env.CI_PUSH} ./build_devel.sh"],
|
||||||
["test car interfaces", "cd selfdrive/car/tests/ && ./test_car_interfaces.py"],
|
["test car interfaces", "cd selfdrive/car/tests/ && ./test_car_interfaces.py"],
|
||||||
["test spinner build", "cd selfdrive/ui/spinner && make clean && make"],
|
["test spinner build", "cd selfdrive/ui/spinner && make clean && make"],
|
||||||
|
|
|
@ -71,14 +71,13 @@ def test_cpu_usage():
|
||||||
manager_proc = subprocess.Popen(["python", manager_path])
|
manager_proc = subprocess.Popen(["python", manager_path])
|
||||||
try:
|
try:
|
||||||
proc_sock = messaging.sub_sock('procLog', conflate=True, timeout=2000)
|
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
|
# wait until everything's started
|
||||||
|
msg = None
|
||||||
start_time = time.monotonic()
|
start_time = time.monotonic()
|
||||||
while time.monotonic() - start_time < 240:
|
while msg is None and time.monotonic() - start_time < 240:
|
||||||
msg = messaging.recv_sock(cs_sock, wait=True)
|
msg = messaging.recv_sock(cs_sock)
|
||||||
if msg is not None:
|
|
||||||
break
|
|
||||||
|
|
||||||
# take first sample
|
# take first sample
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
|
|
Loading…
Reference in New Issue