diff options
author | Tom Rini <trini@konsulko.com> | 2024-07-04 09:25:51 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-07-04 09:25:51 -0600 |
commit | e24053d8fb42c909b470e33f19ac71fd718133ce (patch) | |
tree | b69fd2a2ee983403d9ea52b928632dbac3eaff03 /test/py/tests/test_help.py | |
parent | 0f073e022ddc5070e5df1d053e4bdc1874fbcc0f (diff) | |
parent | 4a8a54c3f4202482ec4f24a117afc38cf2c0c051 (diff) |
Merge patch series "testb: Various tweaks and fixes for Labgrid"
Simon Glass <sjg@chromium.org> says:
This series includes a number of mostly unrelated changes which are in
service of running U-Boot on a lab using Labgrid.
Diffstat (limited to 'test/py/tests/test_help.py')
-rw-r--r-- | test/py/tests/test_help.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/py/tests/test_help.py b/test/py/tests/test_help.py index 153133cf28f..2325ff69229 100644 --- a/test/py/tests/test_help.py +++ b/test/py/tests/test_help.py @@ -7,7 +7,11 @@ import pytest def test_help(u_boot_console): """Test that the "help" command can be executed.""" - u_boot_console.run_command('help') + lines = u_boot_console.run_command('help') + if u_boot_console.config.buildconfig.get('config_cmd_2048', 'n') == 'y': + assert lines.splitlines()[0] == "2048 - The 2048 game" + else: + assert lines.splitlines()[0] == "? - alias for 'help'" @pytest.mark.boardspec('sandbox') def test_help_no_devicetree(u_boot_console): |