]> code.ossystems Code Review - openembedded-core.git/commitdiff
knotty: exit with 1 if we see a critical log message
authorChris Larson <chris_larson@mentor.com>
Wed, 15 Dec 2010 20:50:28 +0000 (13:50 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:51 +0000 (14:46 +0000)
(Bitbake rev: d527ca441539618c990291fb8340f552ac760bce)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/ui/knotty.py

index 9f3ec41b5c6938cddb2213eed5acdfd4f9f1e6a7..69a84f78300b886ffd9554779eca3b70b646f926 100644 (file)
@@ -114,9 +114,10 @@ def main(server, eventHandler):
                         print("%s: %s (pid %s)" % (tasknum, activetasks[task]["title"], task))
 
             if isinstance(event, logging.LogRecord):
-                if event.levelno is logging.CRITICAL or event.levelno is logging.ERROR:
+                if event.levelno >= logging.CRITICAL:
+                    return_value = 1
+                if event.levelno is logging.ERROR:
                     return_value = 1
-            if isinstance(event, logging.LogRecord):
                 logger.handle(event)
                 continue