summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/toasterui.py
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2016-07-12 15:54:44 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-19 08:56:51 +0100
commit5dfa120a7cf3c2cf46f165df25854e45a3b4e2f6 (patch)
tree4f6793606893d29f810d6f567d88089ec5cb4b6e /bitbake/lib/bb/ui/toasterui.py
parentb0585e6b0c8d4b9a7d2102e615fff0ef069e0f98 (diff)
downloadpoky-5dfa120a7cf3c2cf46f165df25854e45a3b4e2f6.tar.gz
bitbake: toaster: do image and artifact scan on BuildCompleted
Move the image and artifact scan code from toaster.bbclass and consolidate its logic with the existing logic in buildinfohelper. Remove handler setup for events which used to be fired from toaster.bbclass but which are now handled directly by buildinfohelper. [YOCTO #8556] (Bitbake rev: f0085cd554604cfff4a3f40a34825fbb6878004f) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: bavery <brian.avery@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.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index 5382935f82..d8bccdb81c 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -363,6 +363,8 @@ def main(server, eventHandler, params):
363 errors += 1 363 errors += 1
364 errorcode = 1 364 errorcode = 1
365 logger.error("Command execution failed: %s", event.error) 365 logger.error("Command execution failed: %s", event.error)
366 elif isinstance(event, bb.event.BuildCompleted):
367 buildinfohelper.scan_build_artifacts()
366 368
367 # turn off logging to the current build log 369 # turn off logging to the current build log
368 _close_build_log(build_log) 370 _close_build_log(build_log)
@@ -410,12 +412,8 @@ def main(server, eventHandler, params):
410 buildinfohelper.store_target_package_data(event) 412 buildinfohelper.store_target_package_data(event)
411 elif event.type == "MissedSstate": 413 elif event.type == "MissedSstate":
412 buildinfohelper.store_missed_state_tasks(event) 414 buildinfohelper.store_missed_state_tasks(event)
413 elif event.type == "ImageFileSize":
414 buildinfohelper.update_target_image_file(event)
415 elif event.type == "ArtifactFileSize": 415 elif event.type == "ArtifactFileSize":
416 buildinfohelper.update_artifact_image_file(event) 416 buildinfohelper.update_artifact_image_file(event)
417 elif event.type == "LicenseManifestPath":
418 buildinfohelper.store_license_manifest_path(event)
419 elif event.type == "SetBRBE": 417 elif event.type == "SetBRBE":
420 buildinfohelper.brbe = buildinfohelper._get_data_from_event(event) 418 buildinfohelper.brbe = buildinfohelper._get_data_from_event(event)
421 elif event.type == "OSErrorException": 419 elif event.type == "OSErrorException":