summaryrefslogtreecommitdiff
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2017-01-13 14:33:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-19 22:45:46 +0000
commit9d2b1aa1bcfb2f1933a8eeb9470b4174d5da2f0d (patch)
tree55d2e419b5d57654e3ea3279759cac4d81815d92 /meta/classes/testimage.bbclass
parent66f66d1d763ff7bbaab9e8fcdf7fc882f2dfbb13 (diff)
downloadopenembedded-core-9d2b1aa1bcfb2f1933a8eeb9470b4174d5da2f0d.tar.gz
openembedded-core-9d2b1aa1bcfb2f1933a8eeb9470b4174d5da2f0d.tar.bz2
openembedded-core-9d2b1aa1bcfb2f1933a8eeb9470b4174d5da2f0d.zip
oeqa/utils/qemurunner.py: Be sure to stop qemu-system
When runqemu fails, qemu-system process would keep running and won't be killed, setpgrp() was used when runqemu was a shell script but it seems it doesn't work always with python. This would kill qemu-system explicity and to avoid leaving it behind. Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 770ec801c2..7eb4038d21 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -171,6 +171,8 @@ def testimage_main(d):
bb.plain(msg)
else:
bb.fatal("%s - FAILED - check the task log and the ssh log" % pn)
+ except BlockingIOError as err:
+ bb.error('runqemu failed, shutting down...')
finally:
signal.signal(signal.SIGTERM, tc.origsigtermhandler)
target.stop()