]> code.ossystems Code Review - openembedded-core.git/commit
testimage: handle SIGTERM to conclude runqemu
authorMariano Lopez <mariano.lopez@linux.intel.com>
Sat, 5 Sep 2015 10:17:26 +0000 (10:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Sep 2015 15:10:46 +0000 (16:10 +0100)
commit2694d2f17d597b44fcc7aed5f6836081fa88a6b3
tree4beb9025319658527a28f6fd3643d918d920f39d
parentc66d7d85b7225be8c838449324d506565dd0081d
testimage: handle SIGTERM to conclude runqemu

In the current state if a SIGTERM is sent to
the testimage worker, the worker will exit but
runqemu and qemu won't exit and the processes
need to be killed manually to free the
bitbake lock.

This allows to catch the SIGTERM signal in
testimage, this way it is possible to stop
runqemu and qemu and allow to free the bitbake lock.

Also this allows to skip the rest of the tests
when running the tests in qemu or real hardware.

This also solves minimal breaks in the setup of the
runtime test when checking if qemu is alive.

[YOCTO #8239]

Signed-off-by: Benjamin Esquivel <benjamin.esquivel@linux.intel.com>
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage.bbclass
meta/lib/oeqa/oetest.py