summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
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-06 15:26:18 +0100
commitef0fe3193eb546757f7c98274b88c4f2eafd7ad0 (patch)
tree4e3222722ee7fa29409fde8e2f614b8d12683a0e /meta/lib/oeqa/oetest.py
parent3d81a56912fb2c6ca1c5aafb93cbc6e2cfea20b3 (diff)
downloadpoky-ef0fe3193eb546757f7c98274b88c4f2eafd7ad0.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: 5c04b1ca1e989f569d5755a646734d01a0c56cae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 9724325083..ff62c30268 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -144,6 +144,9 @@ class oeRuntimeTest(oeTest):
144 self.target = oeRuntimeTest.tc.target 144 self.target = oeRuntimeTest.tc.target
145 super(oeRuntimeTest, self).__init__(methodName) 145 super(oeRuntimeTest, self).__init__(methodName)
146 146
147 def setUp(self):
148 self.assertTrue(self.target.check(), msg = "Qemu not running?")
149
147 def tearDown(self): 150 def tearDown(self):
148 # If a test fails or there is an exception 151 # If a test fails or there is an exception
149 if not exc_info() == (None, None, None): 152 if not exc_info() == (None, None, None):