increase dmonitoringmodeld execution time threshold

pull/21456/head
Adeeb Shihadeh 4 years ago
parent 7d04be39cb
commit 9b9a2d7b89
  1. 2
      selfdrive/test/test_onroad.py

@ -154,7 +154,7 @@ class TestOnroad(unittest.TestCase):
self.assertTrue(cpu_ok) self.assertTrue(cpu_ok)
def test_model_timings(self): def test_model_timings(self):
cfgs = [("modelV2", 0.035, 0.03), ("driverState", 0.022, 0.018)] cfgs = [("modelV2", 0.035, 0.03), ("driverState", 0.022, 0.020)]
for (s, instant_max, avg_max) in cfgs: for (s, instant_max, avg_max) in cfgs:
ts = [getattr(getattr(m, s), "modelExecutionTime") for m in self.lr if m.which() == s] ts = [getattr(getattr(m, s), "modelExecutionTime") for m in self.lr if m.which() == s]
self.assertLess(min(ts), instant_max, f"high '{s}' execution time: {min(ts)}") self.assertLess(min(ts), instant_max, f"high '{s}' execution time: {min(ts)}")

Loading…
Cancel
Save