summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-04-06 17:46:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 23:10:27 +0100
commit9d4c62d33ee59644591596c082cdb9240eb9aa44 (patch)
treebcff96285c217e44bfd1ea6fe7fc311a9a02310c /bitbake/lib
parent5bcce68ea3cd5bec74336ae3172a4bd25f88385d (diff)
downloadpoky-9d4c62d33ee59644591596c082cdb9240eb9aa44.tar.gz
bitbake: toasterui: fix brbe reporting
buildinfohelper.brbe is lost when buildinfohelper is closed. This causes incorrect report of brbe when build is done. Saved brbe attribute before closing buildinfohelper and used it to report correct brbe. Got rid of useless and confusing 'ToasterUI build done 1' log message. (Bitbake rev: 5d7cce0d0ed70f6b3ebd6cbad300d86964a13398) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/ui/toasterui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index 06a5f17f4e..39a4fe5005 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -372,9 +372,9 @@ def main(server, eventHandler, params):
372 372
373 # update the build info helper on BuildCompleted, not on CommandXXX 373 # update the build info helper on BuildCompleted, not on CommandXXX
374 buildinfohelper.update_build_information(event, errors, warnings, taskfailures) 374 buildinfohelper.update_build_information(event, errors, warnings, taskfailures)
375
376 brbe = buildinfohelper.brbe
375 buildinfohelper.close(errorcode) 377 buildinfohelper.close(errorcode)
376 # mark the log output; controllers may kill the toasterUI after seeing this log
377 logger.info("ToasterUI build done 1, brbe: %s", buildinfohelper.brbe )
378 378
379 # we start a new build info 379 # we start a new build info
380 logger.debug("ToasterUI prepared for new build") 380 logger.debug("ToasterUI prepared for new build")
@@ -383,7 +383,7 @@ def main(server, eventHandler, params):
383 taskfailures = [] 383 taskfailures = []
384 buildinfohelper = BuildInfoHelper(server, build_history_enabled) 384 buildinfohelper = BuildInfoHelper(server, build_history_enabled)
385 385
386 logger.info("ToasterUI build done 2") 386 logger.info("ToasterUI build done, brbe: %s", brbe)
387 continue 387 continue
388 388
389 if isinstance(event, (bb.command.CommandCompleted, 389 if isinstance(event, (bb.command.CommandCompleted,