]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 11 May 2021 05:13:37 +0000 (13:13 +0800)
commita72572532b976a4c3e8fa68fe63f63e39399ee88
tree53adef19f0d576d389af4eaa1a702c7a73a1db3f
parent000feb98ff99e74d6118fc3f53330b8e975923d9
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: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oeqa/utils/qemurunner.py