mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-10 20:02:13 +08:00
test onroad: stricter ui timings check (#28853)
old-commit-hash: 740380bf05f67aebfba77fefdc808789c741b75b
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user