summaryrefslogtreecommitdiff
path: root/test/py/tests/test_help.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-02-09 09:07:17 -0700
committerSimon Glass <sjg@chromium.org>2025-03-15 11:47:04 +0000
commitd08653d3699c1aafada3418c9f74b887bfb21a65 (patch)
treeba6b67765d7364bfbefe029ee14273ee899e767a /test/py/tests/test_help.py
parentdd693ecb60384049dd8c3f6a36331c1a70b6558f (diff)
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>
Diffstat (limited to 'test/py/tests/test_help.py')
-rw-r--r--test/py/tests/test_help.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/py/tests/test_help.py b/test/py/tests/test_help.py
index 72f7282478c..12cb36b7b98 100644
--- a/test/py/tests/test_help.py
+++ b/test/py/tests/test_help.py
@@ -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