]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/qemurunner: Improve logging thread exit handling for qemu shutdown test
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 May 2021 18:15:29 +0000 (19:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 May 2021 10:15:53 +0000 (11:15 +0100)
commit0e19f31a1005f94105e1cef252abfffcef2aafad
treee14db5cf9e12d9860bd5b17ceef1be552351d813
parent38b36d2b90d570149e63816e68f457aea28a5092
oeqa/qemurunner: Improve logging thread exit handling for qemu shutdown test

Rather than totally disabling the logging, inform it we're about to exit
so we can log messages over the exit cleanly too. This aids debugging. It
also avoids a race where the logging handler could still error whilst
shutting down.

Also remove a race window by notificing the handler of the shutdown
first, before triggering it. This removes a race window I watched in
local testing.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/runqemu.py
meta/lib/oeqa/utils/qemurunner.py