Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id DB0D4E00B70; Tue, 2 Feb 2016 06:47:07 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 46F6DE00C10 for ; Tue, 2 Feb 2016 06:47:06 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 02 Feb 2016 06:47:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,385,1449561600"; d="scan'208";a="739142374" Received: from unknown (HELO lp.ger.corp.intel.com) ([10.252.22.6]) by orsmga003.jf.intel.com with ESMTP; 02 Feb 2016 06:47:04 -0800 From: Elliot Smith To: toaster@yoctoproject.org Date: Tue, 2 Feb 2016 14:46:49 +0000 Message-Id: <1454424409-4210-5-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1454424409-4210-1-git-send-email-elliot.smith@intel.com> References: <1454424409-4210-1-git-send-email-elliot.smith@intel.com> Subject: [review-request][PATCH 4/4] toasterui: handle ParseStarted events X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2016 14:47:07 -0000 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 --- 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.