diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-04-17 16:18:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-26 14:00:50 +0100 |
commit | 4ae71d667d9ddd88180577c1ab64b2c96edfaeb3 (patch) | |
tree | 1da9ab30c5309152a48e722ba24f23966f31e712 /scripts/lib/wic/engine.py | |
parent | 594c9392e924d5dd90b3a16e28ca5c56c6bcc7b5 (diff) | |
download | poky-4ae71d667d9ddd88180577c1ab64b2c96edfaeb3.tar.gz |
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).
(From OE-Core rev: 06568a06ca22ee279d1829d26d4c38738233c06a)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/engine.py')
0 files changed, 0 insertions, 0 deletions