]> code.ossystems Code Review - openembedded-core.git/commit
qemurunner.py: add try/except for pid handling race
authorTrevor Gamblin <trevor.gamblin@windriver.com>
Fri, 7 Feb 2020 13:46:52 +0000 (08:46 -0500)
committerArmin Kuster <akuster808@gmail.com>
Fri, 21 Feb 2020 02:58:01 +0000 (18:58 -0800)
commit0e94cfb4aa718b4842f608879b77d5671b5bf338
treee2106f6d46d7d1a7f64477d2978ac45af6d3e559
parent2b3235f10bb1759d651d28b41825ad53192c841a
qemurunner.py: add try/except for pid handling race

In some instances, attempts to remove the qemu pidfile within the
stop() method fail despite the os.path.exists() call immediately
before implying that the file is present. Add a try/except block
to log a warning if this occurs, rather than failing outright,
since the process simply appears to be exiting at an inconvenient
time.

[YOCTO #13675]

Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eadb899e23b18eb9eaff145c3bf5b20fb417c3e8)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/utils/qemurunner.py