[PATCH v2] test/py: reset: Add a test for reset command

Tom Rini trini at konsulko.com
Tue Feb 13 15:11:58 CET 2024


On Tue, Feb 13, 2024 at 06:26:56PM +0530, Love Kumar wrote:

> Add a test for reset commands which performs resetting of CPU, It does
> COLD reset by default and WARM reset with -w option.
> 
> Signed-off-by: Love Kumar <love.kumar at amd.com>
> ---
> Changes in v2:
>  - Set bootmode through boardenv if modeboot is not defined


Still fails on sandbox:
test/py/tests/test_reset.py F

========================================== FAILURES ===========================================
_________________________________________ test_reset __________________________________________
test/py/tests/test_reset.py:49: in test_reset
    setup_reset_env(u_boot_console)
test/py/tests/test_reset.py:32: in setup_reset_env
    output = u_boot_console.run_command('print modeboot')
test/py/u_boot_console_base.py:269: in run_command
    raise Exception('Bad pattern found on console: ' +
E   Exception: Bad pattern found on console: error_notification
------------------------------------ Captured stdout call -------------------------------------
=> print modeboot
## Error: "modeboot" not defined

Please note that
https://docs.u-boot.org/en/latest/develop/py_testing.html talks about
how to run the pytests on sandbox as well, for next time.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240213/dafe2e8f/attachment.sig>


More information about the U-Boot mailing list