test onroad: stricter ui timings check (#28853)

old-commit-hash: 740380bf05f67aebfba77fefdc808789c741b75b
This commit is contained in:
Adeeb Shihadeh
2023-07-08 22:26:53 -07:00
committed by GitHub
parent 69d7394e5c
commit 48808e274d
+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"