diff options
Diffstat (limited to 'meta/classes/testimage.bbclass')
| -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 01d8598604..deb81bc256 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 | ||
| @@ -360,9 +360,9 @@ def testimage_main(d): | |||
| 360 | # or if the worker send us a SIGTERM | 360 | # or if the worker send us a SIGTERM |
| 361 | tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS")) | 361 | tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), runqemuparams=d.getVar("TEST_RUNQEMUPARAMS")) |
| 362 | results = tc.runTests() | 362 | results = tc.runTests() |
| 363 | except (RuntimeError, BlockingIOError) as err: | 363 | except (KeyboardInterrupt, BlockingIOError) as err: |
| 364 | if isinstance(err, RuntimeError): | 364 | if isinstance(err, KeyboardInterrupt): |
| 365 | bb.error('testimage received SIGTERM, shutting down...') | 365 | bb.error('testimage interrupted, shutting down...') |
| 366 | else: | 366 | else: |
| 367 | bb.error('runqemu failed, shutting down...') | 367 | bb.error('runqemu failed, shutting down...') |
| 368 | if results: | 368 | if results: |
