diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2013-11-19 16:46:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-20 14:05:52 +0000 |
commit | e19ee57c962dfa7ce7802e27e16daea53f3052a3 (patch) | |
tree | 8909ca9649bd18084d130a117a7e6d0e72b756e3 /bitbake/lib/bb/ui | |
parent | 10717e5a0a2918b04af04c7dca31efacd4ae8b7c (diff) | |
download | poky-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')
-rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 7 |
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 ): | |||
217 | if isinstance(event, (bb.command.CommandCompleted, | 217 | if isinstance(event, (bb.command.CommandCompleted, |
218 | bb.command.CommandFailed, | 218 | bb.command.CommandFailed, |
219 | bb.command.CommandExit)): | 219 | bb.command.CommandExit)): |
220 | if (isinstance(event, bb.command.CommandFailed)): | ||
221 | event.levelno = format.ERROR | ||
222 | event.msg = event.error | ||
223 | event.pathname = "" | ||
224 | event.lineno = 0 | ||
225 | buildinfohelper.store_log_event(event) | ||
226 | errors += 1 | ||
220 | 227 | ||
221 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) | 228 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) |
222 | 229 | ||