summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-15 13:50:28 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-15 22:09:43 -0700
commitd527ca441539618c990291fb8340f552ac760bce (patch)
tree874d65209ebafeb972a82122f563fbd3697f71e2
parent1f5d49ce64e5e1c7705edbfa3c8e19649c21edd2 (diff)
downloadbitbake-d527ca441539618c990291fb8340f552ac760bce.tar.gz
knotty: exit with 1 if we see a critical log message
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/bb/ui/knotty.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 8a077df2e..be0d8ce70 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -114,6 +114,8 @@ def main(server, eventHandler):
print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task))
if isinstance(event, logging.LogRecord):
+ if event.levelno >= logging.CRITICAL:
+ return_value = 1
logger.handle(event)
continue