Просмотр исходного кода

test: Run only the selected SPL test

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

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 3 лет назад
Родитель
Сommit
e1e54ffe99
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/py/tests/test_spl.py

+ 1 - 1
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: