From: Denis Mukhin <[email protected]> Extend reset tests to cover both -c/-w reset command flags. Make sure sandbox reset tests are passing.
Signed-off-by: Denis Mukhin <[email protected]> --- Changes since v2: - dropped sandbox condig for pytests Changes since v1: - new patch Test for sandbox: ./test/py/test.py --bd sandbox --build -k test_reset -v --- test/py/tests/test_reset.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/py/tests/test_reset.py b/test/py/tests/test_reset.py index af079a706647..e1037c963f77 100644 --- a/test/py/tests/test_reset.py +++ b/test/py/tests/test_reset.py @@ -52,12 +52,12 @@ def test_reset(ubman): test_000_version.test_version(ubman) @pytest.mark.buildconfigspec('hush_parser') -def test_reset_w(ubman): - """Test the reset -w command in non-JTAG bootmode. - It does WARM reset, which resets CPU but keep DDR/peripherals active. [email protected]("reset_type", ["c", "w"]) +def test_reset_type(ubman, reset_type): + """Test the reset -{c,w} command in non-JTAG bootmode. """ setup_reset_env(ubman) - ubman.run_command('reset -w', wait_for_reboot=True) + ubman.run_command(f"reset -{reset_type}", wait_for_reboot=True) # Checks the u-boot command prompt's functionality after reset test_000_version.test_version(ubman) -- 2.54.0

