[Concept,2/2] test: py: Use run_ut() helper for vbe_test_fixup
Commit Message
From: Simon Glass <simon.glass@canonical.com>
Split the base_script to separate the ut command from the U-Boot command
sequence. This allows using run_ut() for the vbe_test_fixup test,
reducing duplication and improving consistency.
Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
test/py/tests/test_vbe.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
@@ -87,7 +87,6 @@ bootm loados
bootm prep
fdt addr
fdt print
-ut -f bootstd vbe_test_fixup_norun
'''
@pytest.mark.boardspec('sandbox')
@@ -117,9 +116,9 @@ def test_vbe_os_request(ubman):
cmd = base_script % params
with ubman.log.section('Kernel load'):
- output = ubman.run_command_list(cmd.splitlines())
+ ubman.run_command_list(cmd.splitlines())
- assert 'failures: 0' in output[-1]
+ ubman.run_ut('bootstd', 'vbe_test_fixup')
@pytest.mark.boardspec('sandbox')
def test_vbe_extlinux_fit_no_oem(ubman):