test onroad: stricter ui timings check (#28853)

This commit is contained in:
Adeeb Shihadeh
2023-07-08 22:26:53 -07:00
committed by GitHub
parent b9cffac29c
commit 740380bf05
+5 -1
View File
@@ -205,10 +205,14 @@ class TestOnroad(unittest.TestCase):
result += "------------------------------------------------\n"
print(result)
#self.assertLess(max(ts), 30.)
self.assertLess(max(ts), 100.)
self.assertLess(np.mean(ts), 10.)
#self.assertLess(np.std(ts), 5.)
# some slow frames are expected since camerad/modeld can preempt ui
veryslow = [x for x in ts if x > 40.]
assert len(veryslow) < 5, f"Too many slow frame draw times: {veryslow}"
def test_cpu_usage(self):
result = "\n"
result += "------------------------------------------------\n"