]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
qemurunner: more cleanups for output blocking
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 20 Dec 2023 16:14:50 +0000 (16:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Dec 2023 10:37:28 +0000 (10:37 +0000)
commit5e58737c66090fe009ec49296f3e7d687eb05766
tree621e138633b8ee99e80ae5d770ac4e3e3f967a1e
parentaceef7785e637a0223ecf288e2f367b6bee4a505
qemurunner: more cleanups for output blocking

If we are only tracking stdout and are not using self.readsock we end
up throwing an exception blocking further action from the thread. Fix
this by checking self.readsock is not None first.

While we are at it split even into fd, event to make things clearer
and handle the fail path of stringify_event by echoing the hex value
of the unknown flag.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Mikko Rapeli <mikko.rapeli@linaro.org>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py