Skip to content
Commit 72a19f5f authored by Alexander Kanavin's avatar Alexander Kanavin Committed by Steve Sakoman
Browse files

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: default avatarAlexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 3d633f20
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment