]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/qemurunner: Don't print a warning for harmless exception
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Mar 2020 17:15:32 +0000 (17:15 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Mar 2020 16:39:37 +0000 (16:39 +0000)
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 <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py

index ed74ea8fadf78f5178dd712553c15967fda874e9..7ae309845a2fde0a286c08d405bd1f9146c0433a 100644 (file)
@@ -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()