aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-03-02 22:47:43 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-07 17:21:07 +0000
commitb11f9d6d3c2eb615335901e1dcea699daf3afb4c (patch)
tree431ad87a48d981f33175ea20a9ce5927aff5db7f /lib/bb/ui
parentd4b5796899c3ca5c7becd7322291afd8afb35a31 (diff)
downloadbitbake-b11f9d6d3c2eb615335901e1dcea699daf3afb4c.tar.gz
toasterui: exit on final events
Toasterui exits only if bitbake observer shuts down. In build mode it should exit when build is done. Made toasterui exit on bb.command.CommandCompleted, bb.command.CommandFailed and bb.command.CommandExit events when it's running in build mode. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r--lib/bb/ui/toasterui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 2d443776b..728803d62 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -388,7 +388,10 @@ def main(server, eventHandler, params):
if isinstance(event, (bb.command.CommandCompleted,
bb.command.CommandFailed,
bb.command.CommandExit)):
- errorcode = 0
+ if params.observe_only:
+ errorcode = 0
+ else:
+ main.shutdown = 1
continue