diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-10-27 20:29:23 +0100 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-11-05 09:11:30 -0700 |
commit | 35d949222f5fc629cf89063a39998fbc39c2c4ca (patch) | |
tree | 84fa0a69494512fc752acfebb8199048d41f9af4 /test | |
parent | b1ad4157638ed4f22d8ae59c434f694730163bca (diff) | |
download | u-boot-35d949222f5fc629cf89063a39998fbc39c2c4ca.tar.gz u-boot-35d949222f5fc629cf89063a39998fbc39c2c4ca.tar.bz2 u-boot-35d949222f5fc629cf89063a39998fbc39c2c4ca.zip |
test/py: test poweroff
It is the 'poweroff' and not the 'reset' command that should shut down the
sandbox.
Adjust the unit test accordingly
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_sandbox_exit.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/py/tests/test_sandbox_exit.py b/test/py/tests/test_sandbox_exit.py index a301f4b559..2d242ae0f6 100644 --- a/test/py/tests/test_sandbox_exit.py +++ b/test/py/tests/test_sandbox_exit.py @@ -6,11 +6,11 @@ import pytest import signal @pytest.mark.boardspec('sandbox') -@pytest.mark.buildconfigspec('sysreset') -def test_reset(u_boot_console): - """Test that the "reset" command exits sandbox process.""" +@pytest.mark.buildconfigspec('sysreset_cmd_poweroff') +def test_poweroff(u_boot_console): + """Test that the "poweroff" command exits sandbox process.""" - u_boot_console.run_command('reset', wait_for_prompt=False) + u_boot_console.run_command('poweroff', wait_for_prompt=False) assert(u_boot_console.validate_exited()) @pytest.mark.boardspec('sandbox') |