diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-02-13 11:41:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-22 20:25:04 +0000 |
commit | aeb71c3ca65dc42015c29c0e4cac050bfbcb51a5 (patch) | |
tree | 16bdc37beb6ffe9f1892c15df0c396da89ba238d /lib | |
parent | c11eab7fa230f1fd5cc33589f3555b94e95f202d (diff) | |
download | bitbake-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.py | 1 |
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 |