diff options
| -rw-r--r-- | meta/classes/testimage.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index c1669f133d..53945478af 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
| @@ -204,7 +204,7 @@ def testimage_main(d): | |||
| 204 | """ | 204 | """ |
| 205 | Catch SIGTERM from worker in order to stop qemu. | 205 | Catch SIGTERM from worker in order to stop qemu. |
| 206 | """ | 206 | """ |
| 207 | raise RuntimeError | 207 | os.kill(os.getpid(), signal.SIGINT) |
| 208 | 208 | ||
| 209 | testimage_sanity(d) | 209 | testimage_sanity(d) |
| 210 | 210 | ||
| @@ -364,9 +364,9 @@ def testimage_main(d): | |||
| 364 | # or if the worker send us a SIGTERM | 364 | # or if the worker send us a SIGTERM |
| 365 | tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS")) | 365 | tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS")) |
| 366 | results = tc.runTests() | 366 | results = tc.runTests() |
| 367 | except (RuntimeError, BlockingIOError) as err: | 367 | except (KeyboardInterrupt, BlockingIOError) as err: |
| 368 | if isinstance(err, RuntimeError): | 368 | if isinstance(err, KeyboardInterrupt): |
| 369 | bb.error('testimage received SIGTERM, shutting down...') | 369 | bb.error('testimage interrupted, shutting down...') |
| 370 | else: | 370 | else: |
| 371 | bb.error('runqemu failed, shutting down...') | 371 | bb.error('runqemu failed, shutting down...') |
| 372 | if results: | 372 | if results: |
