summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-02-13 11:41:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-22 20:25:04 +0000
commitaeb71c3ca65dc42015c29c0e4cac050bfbcb51a5 (patch)
tree16bdc37beb6ffe9f1892c15df0c396da89ba238d /lib
parentc11eab7fa230f1fd5cc33589f3555b94e95f202d (diff)
downloadbitbake-contrib-aeb71c3ca65dc42015c29c0e4cac050bfbcb51a5.tar.gz
bitbake/knotty: ensure CommandFailed increases error count
CommandFailed already sets the return code, so we print out the error summary message, however we don't increase the error count so it is usually zero in this case. As we are actually showing an ERROR message, increment the error count so that the summary makes sense. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/knotty.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index a0bb1275a..9881d828d 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -203,6 +203,7 @@ def main(server, eventHandler):
if isinstance(event, bb.command.CommandFailed):
return_value = event.exitcode
+ errors = errors + 1
logger.error("Command execution failed: %s", event.error)
shutdown = 2
continue