]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Feb 2020 13:19:56 +0000 (13:19 +0000)
commiteadb899e23b18eb9eaff145c3bf5b20fb417c3e8
tree4980c3153022d927b4c42fa7af17d5d2fda0f8fd
parent84eb1dc4fe8a11cd2d05b703070a6fb6de05b873
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>
meta/lib/oeqa/utils/qemurunner.py