]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Improve handling of sending commands
authorSimon Glass <sjg@chromium.org>
Tue, 12 Nov 2024 14:13:20 +0000 (07:13 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Nov 2024 18:01:35 +0000 (12:01 -0600)
commitf32951df40ae0c5389a480dedba2b22ba0a39a05
treeb5460bbd5f653671f04f804986b4bfa4d768a0d6
parent8308a5eed6e6310625465449916f25b5f9a844c9
test: Improve handling of sending commands

We expect commands to be echoed and this should happen quite quickly,
since U-Boot is sitting at the prompt waiting for a command.

Reduce the timeout for this situation. Try to produce a more useful
error message when something goes wrong. Also handle the case where the
connection has gone away since the last command was issued.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/py/u_boot_console_base.py