Patchwork [bitbake-devel,3/3] bitbake/knotty: ensure CommandFailed increases error count

mail settings
Submitter Paul Eggleton
Date Feb. 13, 2012, 11:41 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/21183/
State New
Headers show


Paul Eggleton - Feb. 13, 2012, 11:41 a.m.
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 <>
 bitbake/lib/bb/ui/ |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/bitbake/lib/bb/ui/ b/bitbake/lib/bb/ui/
index 2693a78..ed978e2 100644
--- a/bitbake/lib/bb/ui/
+++ b/bitbake/lib/bb/ui/
@@ -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)
             if isinstance(event, bb.command.CommandExit):