Skip to contentSkip to conversation

runqueue: Handle BBHandledException correctly

PATCH New Richard Purdie 1 participant 1 message Jun 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/bb/runqueue.py +7 -0
index 752fc3f3..a5ae42b 100644
@@ -1147,6 +1147,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: