test/py: Handle expected reboot while booting sandbox
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Wed, 16 Feb 2022 06:16:02 +0000 (15:16 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Feb 2022 06:37:01 +0000 (07:37 +0100)
commite7233c9c93ae0f59d00063eaf4d7e4f9bd01d63d
tree83707f2f2ea88754c9ed5eabd0be57ab019a34e1
parent06396e2e663809ae6b5da013d5ad165ba16445a6
test/py: Handle expected reboot while booting sandbox

Add expected_reset optional argument to ConsoleBase::ensure_spawned(),
ConsoleBase::restart_uboot() and ConsoleSandbox::restart_uboot_with_flags()
so that it can handle a reset while the 1st boot process after main
boot logo before prompt correctly.

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