]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: Test failure/cleanup improvements
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Sep 2015 15:59:38 +0000 (16:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 5 Sep 2015 05:27:34 +0000 (06:27 +0100)
commit5c04b1ca1e989f569d5755a646734d01a0c56cae
treee4c1f5cb5e47951c56ead1451604bc33477a5971
parent039211f0d8fe79d07b65f2f02e299b9656034214
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

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/oetest.py
meta/lib/oeqa/targetcontrol.py
meta/lib/oeqa/utils/qemurunner.py
meta/lib/oeqa/utils/sshcontrol.py