test/py: Drop assigning ubman to cons

Now that we have a shorter name, we don't need this sort of thing. Just
use ubman instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-02-09 09:07:17 -07:00
parent dd693ecb60
commit d08653d369
27 changed files with 436 additions and 468 deletions

View File

@@ -16,10 +16,9 @@ def test_help(ubman):
@pytest.mark.boardspec('sandbox')
def test_help_no_devicetree(ubman):
try:
cons = ubman
cons.restart_uboot_with_flags([], use_dtb=False)
cons.run_command('help')
output = cons.get_spawn_output().replace('\r', '')
ubman.restart_uboot_with_flags([], use_dtb=False)
ubman.run_command('help')
output = ubman.get_spawn_output().replace('\r', '')
assert 'print command description/usage' in output
finally:
# Restart afterward to get the normal device tree back
@@ -28,10 +27,9 @@ def test_help_no_devicetree(ubman):
@pytest.mark.boardspec('sandbox_vpl')
def test_vpl_help(ubman):
try:
cons = ubman
cons.restart_uboot()
cons.run_command('help')
output = cons.get_spawn_output().replace('\r', '')
ubman.restart_uboot()
ubman.run_command('help')
output = ubman.get_spawn_output().replace('\r', '')
assert 'print command description/usage' in output
finally:
# Restart afterward to get the normal device tree back