From 810bf0093a2488e861b361ac03a13b147964171a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 19 Jun 2015 12:26:54 +0100 Subject: bitbake: runqueue: Handle BBHandledException correctly If we see a BBHandledException in runqueue, the understanding is the system handled it, printing a log and traceback is just confusing. Therefore only print these in the cases where its an unknown/unhandled exception. (Bitbake rev: 29d28e22ce431c3d3aabdb88ff4d8cca67a1cfad) Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index f1155f8f45..cc1aedfce7 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1096,6 +1096,13 @@ class RunQueue: raise except SystemExit: raise + except bb.BBHandledException: + try: + self.teardown_workers() + except: + pass + self.state = runQueueComplete + raise except: logger.error("An uncaught exception occured in runqueue, please see the failure below:") try: -- cgit v1.2.3-54-g00ecf