]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
trace: Relax test requirements
authorSimon Glass <sjg@chromium.org>
Fri, 17 Feb 2023 22:45:16 +0000 (15:45 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 23 Feb 2023 18:29:20 +0000 (13:29 -0500)
We expect the profile and bootstage to agree on timing, but when
running on slow machines there can be a larger descrepency. Increase the
tolerance to fix this.

Fixes: 9cea4797aeb ("trace: Add a test")
Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/tests/test_trace.py

index 14584d11a23ac088b41d01995bd5a35b01e7f631..ac3e95925e95fc2d4282958c183e2b1d3d6feee4 100644 (file)
@@ -299,6 +299,7 @@ def test_trace(u_boot_console):
 
     fg_time = check_flamegraph(cons, fname, proftool, map_fname, trace_fg)
 
-    # Check that bootstage and flamegraph agree to within 10%
+    # Check that bootstage and flamegraph agree to within 30%
+    # This allows for CI being slow to run
     diff = abs(fg_time - dm_f_time)
-    assert diff / dm_f_time < 0.1
+    assert diff / dm_f_time < 0.3