aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-11-19 16:46:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-20 14:05:52 +0000
commite19ee57c962dfa7ce7802e27e16daea53f3052a3 (patch)
tree8909ca9649bd18084d130a117a7e6d0e72b756e3 /bitbake/lib/bb/ui/toasterui.py
parent10717e5a0a2918b04af04c7dca31efacd4ae8b7c (diff)
downloadopenembedded-core-contrib-e19ee57c962dfa7ce7802e27e16daea53f3052a3.tar.gz
bitbake: bitbake: cooker, toaster: mark interrupted builds as failed
This patch changes bitbake to log an error to the command line when the build is interrupted via Ctrl-C. This is needed to inform the user that not all tasks required for the build have been executed, and the build is not complete. Internally, the Bitbake server will return a CommandFailed event that will be logged by Toaster as build failure. (Bitbake rev: 9a658e8b1511f1b9f91663f546f748fdfbc8965f) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/toasterui.py')
-rw-r--r--bitbake/lib/bb/ui/toasterui.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index d2dba256c4..8e30a91109 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -217,6 +217,13 @@ def main(server, eventHandler, params ):
if isinstance(event, (bb.command.CommandCompleted,
bb.command.CommandFailed,
bb.command.CommandExit)):
+ if (isinstance(event, bb.command.CommandFailed)):
+ event.levelno = format.ERROR
+ event.msg = event.error
+ event.pathname = ""
+ event.lineno = 0
+ buildinfohelper.store_log_event(event)
+ errors += 1
buildinfohelper.update_build_information(event, errors, warnings, taskfailures)