[PATCH v2 09/11] test: Run only the selected SPL test

Simon Glass sjg at chromium.org
Mon Oct 26 03:38:34 CET 2020


Use the new -k option to select the test to run.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2:
- Separate out this patch from the next series and include it here

 test/py/tests/test_spl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/py/tests/test_spl.py b/test/py/tests/test_spl.py
index 990cc9b0717..bd273dad893 100644
--- a/test/py/tests/test_spl.py
+++ b/test/py/tests/test_spl.py
@@ -24,7 +24,7 @@ def test_spl(u_boot_console, ut_spl_subtest):
     """
     try:
         cons = u_boot_console
-        cons.restart_uboot_with_flags(['-u', ut_spl_subtest])
+        cons.restart_uboot_with_flags(['-u', '-k', ut_spl_subtest.split()[1]])
         output = cons.get_spawn_output().replace('\r', '')
         assert 'Failures: 0' in output
     finally:
-- 
2.29.0.rc2.309.g374f81d7ae-goog



More information about the U-Boot mailing list