]> 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)
committerSteve Sakoman <steve@sakoman.com>
Fri, 14 May 2021 17:16:38 +0000 (07:16 -1000)
commit57249316b6c66c5e17804e1b04f2d5cf0db92683
tree1fb95bedf042bd5a63f6bb7142422e7cb03eda89
parent760cc905fda18ee73ff3698a117f8841d3823b65
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>
(cherry picked from commit 0e19f31a1005f94105e1cef252abfffcef2aafad)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/runqemu.py
meta/lib/oeqa/utils/qemurunner.py