[Concept,2/2] test: py: Use run_ut() helper for vbe_test_fixup

Message ID 20251229214319.237565-3-sjg@u-boot.org
State New
Headers
Series test: py: Convert more tests to use run_ut() helper |

Commit Message

Simon Glass Dec. 29, 2025, 9:43 p.m. UTC
  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(-)
  

Patch

diff --git a/test/py/tests/test_vbe.py b/test/py/tests/test_vbe.py
index 411ed429605..5b1fb52d824 100644
--- a/test/py/tests/test_vbe.py
+++ b/test/py/tests/test_vbe.py
@@ -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):