[Toaster] [review-request][PATCH 4/4] toasterui: handle ParseStarted events

Elliot Smith elliot.smith at intel.com
Tue Feb 2 06:46:49 PST 2016


Now that ParseStarted events are no longer treated as the first
event in the build, they have no handler and cause an
"Unknown event" warning in toasterui.

Add them to the event mask and the no-op handler for events we're
not interested in.

[YOCTO #8440]

Signed-off-by: Elliot Smith <elliot.smith at intel.com>
---
 bitbake/lib/bb/ui/toasterui.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py
index cef2e30..2c682ff 100644
--- a/bitbake/lib/bb/ui/toasterui.py
+++ b/bitbake/lib/bb/ui/toasterui.py
@@ -93,7 +93,7 @@ def _close_build_log(build_log):
         logger.removeHandler(build_log)
 
 _evt_list = [ "bb.runqueue.runQueueExitWait", "bb.event.LogExecTTY", "logging.LogRecord",
-              "bb.build.TaskFailed", "bb.build.TaskBase",
+              "bb.build.TaskFailed", "bb.build.TaskBase", "bb.event.ParseStarted",
               "bb.event.ParseProgress", "bb.event.ParseCompleted", "bb.event.CacheLoadStarted",
               "bb.event.CacheLoadProgress", "bb.event.CacheLoadCompleted", "bb.command.CommandFailed",
               "bb.command.CommandExit", "bb.command.CommandCompleted",  "bb.cooker.CookerExit",
@@ -388,7 +388,8 @@ def main(server, eventHandler, params):
                                   bb.command.CommandFailed,
                                   bb.command.CommandExit,
                                   bb.command.CommandCompleted,
-                                  bb.event.ReachableStamps)):
+                                  bb.event.ReachableStamps,
+                                  bb.event.ParseStarted)):
                 continue
 
             if isinstance(event, bb.event.DepTreeGenerated):
-- 
Elliot Smith
Software Engineer
Intel OTC

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the toaster mailing list