]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 11 May 2021 05:11:28 +0000 (13:11 +0800)
commit7f931dce4484a2740b419b2d25830fc453748a0c
tree93886ef23c35351e4931739d97aa51c330905bcd
parentf54eaf65ff549a98ff98157d6b3aa48f9adc9ca5
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: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oeqa/selftest/cases/runqemu.py
meta/lib/oeqa/utils/qemurunner.py