From: Chris Larson Date: Wed, 15 Dec 2010 20:50:28 +0000 (-0700) Subject: knotty: exit with 1 if we see a critical log message X-Git-Tag: 2011-1~3064 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=89a1b59d9a0c2ba7ec62dad41822dd7fdd831a81;p=openembedded-core.git knotty: exit with 1 if we see a critical log message (Bitbake rev: d527ca441539618c990291fb8340f552ac760bce) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 9f3ec41b5c..69a84f7830 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -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