[oe-commits] Richard Purdie : oeqa: Test failure/cleanup improvements

git at git.openembedded.org git at git.openembedded.org
Wed Sep 9 21:58:26 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 459ef91c856e4fde2fe735b2fd8d566f77945778
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=459ef91c856e4fde2fe735b2fd8d566f77945778

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Sep  4 16:59:38 2015 +0100

oeqa: Test failure/cleanup improvements

Currently, if qemu segfaults, the tests merrily continue trying to execute
which takes time for them to timeout and is a bit silly. Worse, no logs about
the segfault are shown to the user, its silent!

This patch tries to unravel the tangled web of issues and ensures that we:

* install a SIGCHLD handler which tells the user qemu exited
* check if qemu is running, if it isn't fail the test outright
* don't leave processes behind in sshcontrol which would hold
  bitbake.lock and block shutdown

(From OE-Core rev: 77e9363feba53b72429154be5713c46b007ae0a4)

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/utils/qemurunner.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 78acb41..d32c9db 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -280,6 +280,7 @@ class QemuRunner:
             self.server_socket = None
         self.qemupid = None
         self.ip = None
+        signal.signal(signal.SIGCHLD, self.origchldhandler)
 
     def stop_thread(self):
         if self.thread and self.thread.is_alive():



More information about the Openembedded-commits mailing list