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>
This commit is contained in:
Simon Glass 2020-10-25 20:38:34 -06:00
parent 22b29cc8fb
commit e1e54ffe99

View File

@ -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: