From b11f9d6d3c2eb615335901e1dcea699daf3afb4c Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 2 Mar 2016 22:47:43 -0800 Subject: 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- lib/bb/ui/toasterui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/bb/ui') 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 -- cgit 1.2.3-korg