]> git.baikalelectronics.ru Git - uboot.git/commit
test/py: Handle expected reset by command
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Wed, 16 Feb 2022 06:15:52 +0000 (15:15 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Feb 2022 06:37:01 +0000 (07:37 +0100)
commitf37699241e4f44dcd6477e24c3480b365bea7212
tree4a32fb8da24d5cfed56da366b8a9853d1c828a18
parent7fac3da2fae85dcc9c617fc255ac1ac211ef345b
test/py: Handle expected reset by command

Add wait_for_reboot optional argument to ConsoleBase::run_command()
so that it can handle an expected reset by command execution.

This is useful if a command will reset the sandbox while testing
such commands, e.g. run_command("reset", wait_for_reboot = True)

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
test/py/u_boot_console_base.py