]> code.ossystems Code Review - openembedded-core.git/commit
testimage.bbclass: correctly process SIGTERM
authorAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 17 Apr 2020 14:18:44 +0000 (16:18 +0200)
committerSteve Sakoman <steve@sakoman.com>
Fri, 1 May 2020 20:12:13 +0000 (10:12 -1000)
commit72a19f5f0f4bc4472d13b29e46a5c1673977e37a
treeae6a5d4c9ef7a152f8300d974219d6645edfc42c
parent3d633f20a98edff434086aa59e8157990bd62f25
testimage.bbclass: correctly process SIGTERM

Python's unittest will not propagate exceptions upside
of itself, but rather will just catch and print them.

The working way to make it stop is to send a SIGINT
(e.g. simulate a ctrl-c press), which will make it exit
with a KeyboardInterrupt exception.

This also makes pressing ctrl-c twice from bitbake work
again (previously hanging instances of bitbake and qemu were
left around, and bitbake would no longer start until they
were killed manually).

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/testimage.bbclass