From: Richard Purdie Date: Mon, 23 Mar 2020 17:15:32 +0000 (+0000) Subject: oeqa/qemurunner: Don't print a warning for harmless exception X-Git-Tag: 2020-04-dunfell~125 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2246c8d2466d3876fd1b27fd1943aa4bbf28e14e;p=openembedded-core.git oeqa/qemurunner: Don't print a warning for harmless exception Printing a warning for something which is harmless just causes the people monitoring the autobuilder more work. Silently ignore this race. Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index ed74ea8fad..7ae309845a 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -430,7 +430,8 @@ class QemuRunner: try: os.remove(self.qemu_pidfile) except FileNotFoundError as e: - self.logger.warning('qemu pidfile is no longer present') + # We raced, ignore + pass if self.monitorpipe: self.monitorpipe.close()