diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-10-31 19:17:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-06 16:45:23 +0000 |
commit | fc75011506c2109bb060c4d0c30266603a39ac6d (patch) | |
tree | 8b1f5dc6d8116f04475f24ae935394fd3498dc3f /bitbake/lib/bb/ui/toasterui.py | |
parent | 7105d44d87783e4d54859d212cd6746cda49ab1d (diff) | |
download | poky-fc75011506c2109bb060c4d0c30266603a39ac6d.tar.gz |
bitbake: toasterui: improvements in data reading
We add improvements in data reading, following
issues discovered in testing.
- elapsed_time is now read from buildstats
- we add safeguards to not fail logging if the build was triggered
with a toaster_brbe configuration, but it's running in
1.6 mode
- added log markups for build finish to let other programs
known when the work is done.
[YOCTO #6833]
[YOCTO #6685]
[YOCTO #6887]
(Bitbake rev: 0b225035cefee3d3713a93f9a432e5e4d4e174f1)
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.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index 0c53843149..007c6b6114 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
@@ -231,14 +231,16 @@ def main(server, eventHandler, params ): | |||
231 | 231 | ||
232 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) | 232 | buildinfohelper.update_build_information(event, errors, warnings, taskfailures) |
233 | buildinfohelper.close(errorcode) | 233 | buildinfohelper.close(errorcode) |
234 | # mark the log output; controllers may kill the toasterUI after seeing this log | ||
235 | logger.info("ToasterUI build done") | ||
234 | 236 | ||
235 | # we start a new build info | 237 | # we start a new build info |
236 | if buildinfohelper.brbe is not None: | 238 | if buildinfohelper.brbe is not None: |
237 | 239 | ||
238 | print "we are under BuildEnvironment management - after the build, we exit" | 240 | logger.debug(1, "ToasterUI under BuildEnvironment management - exiting after the build") |
239 | server.terminateServer() | 241 | server.terminateServer() |
240 | else: | 242 | else: |
241 | print "prepared for new build" | 243 | logger.debug(1, "ToasterUI prepared for new build") |
242 | errors = 0 | 244 | errors = 0 |
243 | warnings = 0 | 245 | warnings = 0 |
244 | taskfailures = [] | 246 | taskfailures = [] |