diff mbox series

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

Message ID 20201026023836.1629465-10-sjg@chromium.org
State Accepted
Commit e1e54ffe9956449d79697d31648217065e033045
Delegated to: Simon Glass
Headers show
Series dm: test: Add unit tests for SPL | expand

Commit Message

Simon Glass Oct. 26, 2020, 2:38 a.m. UTC
Use the new -k option to select the test to run.

Signed-off-by: Simon Glass <sjg@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 mbox series

Patch

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: