diff options
author | Simon Glass <sjg@chromium.org> | 2023-02-18 01:45:16 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-23 21:29:20 +0300 |
commit | c1d266a781600f8c4c18449016edffb5597153cb (patch) | |
tree | f486bee5185557b6f5e80f9d713dd1e979c5e6da /test | |
parent | d85bc196cbf9b70be203047a3450643f1999fe4c (diff) | |
download | u-boot-c1d266a781600f8c4c18449016edffb5597153cb.tar.xz |
trace: Relax test requirements
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_trace.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/py/tests/test_trace.py b/test/py/tests/test_trace.py index 14584d11a2..ac3e95925e 100644 --- a/test/py/tests/test_trace.py +++ b/test/py/tests/test_trace.py @@ -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 |