[PATCH] fixup! test: bthread: change comparison condition for switches vs. yields

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Apr 1 02:20:27 PDT 2025


As Bastian correctly notes, the asserts should have different
conditions.

Reported-by: Bastian Krause <bst at pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 test/py/test_bthread.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/py/test_bthread.py b/test/py/test_bthread.py
index 84fb9f830b0c..6bd1032a53dd 100644
--- a/test/py/test_bthread.py
+++ b/test/py/test_bthread.py
@@ -20,5 +20,5 @@ def test_bthread(barebox, barebox_config):
     switches = int(barebox.run_check("bthread -c")[0].split()[0])
     yields   = int(barebox.run_check("bthread -t")[0].split()[0])
 
-    assert yields > 1000
+    assert switches > 1000
     assert yields > 1000
-- 
2.39.5




More information about the barebox mailing list