Skip to contentSkip to conversation

trace: Relax test requirements

PATCH In review Simon Glass 2 participants 2 messages Feb 17, 2023 – Feb 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")

---

 test/py/tests/test_trace.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
test/py/tests/test_trace.py +3 -2
index 14584d11a23..ac3e95925e9 100644
@@ -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
Signature · 1 line
2.39.2.637.g21b0678d19-goog
#1 lore raw
Quoted 6 lines · Simon Glass

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")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom