]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/qemurunner: Improve handling of run_serial for shutdown commands
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 May 2021 09:59:44 +0000 (10:59 +0100)
committerSteve Sakoman <steve@sakoman.com>
Fri, 14 May 2021 17:16:38 +0000 (07:16 -1000)
commit9c0b242856de519c58be179f82441a35fc635ad9
tree81130252bf9574fee848c64e15c381e281294557
parent8f24a7b35861b6aec39bc8d589e090ea9816732c
oeqa/qemurunner: Improve handling of run_serial for shutdown commands

When running a shutdown command, the serial port can close without the
command returning. This is seen as the socket being readable but having
no data. Change the way this case is handled in the code to avoid
tracebacks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 396a3ba884820d040c91f7592daf20ac28c49b5d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/utils/qemurunner.py