summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-04 16:59:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-12 22:48:33 +0100
commita14c36340961f749514bea1f78347a758509c8fa (patch)
treeea0fc74c0e682a244a39f02fe98beea14eafb4c4 /meta/lib/oeqa/utils
parent4c73aaf09e5cebe6f88d267b3040980263996fea (diff)
downloadpoky-a14c36340961f749514bea1f78347a758509c8fa.tar.gz
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) (From OE-Core rev: c77b57e2fa8a4cf90543038fe1939f6ca9b12bd1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 78acb41276..d32c9db46d 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -280,6 +280,7 @@ class QemuRunner:
280 self.server_socket = None 280 self.server_socket = None
281 self.qemupid = None 281 self.qemupid = None
282 self.ip = None 282 self.ip = None
283 signal.signal(signal.SIGCHLD, self.origchldhandler)
283 284
284 def stop_thread(self): 285 def stop_thread(self):
285 if self.thread and self.thread.is_alive(): 286 if self.thread and self.thread.is_alive():