Patchwork [1/1] sanity.bbclass: Add a new case to issue sanity_check()

login
register
mail settings
Submitter Dongxiao Xu
Date April 24, 2012, 8:18 a.m.
Message ID <466ec63d843bd1f13db3928871890b2e9f53c373.1335254875.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/26379/
State Accepted
Commit 19704f9e69ecf09531687385b478b47f49fe372d
Headers show

Comments

Dongxiao Xu - April 24, 2012, 8:18 a.m.
Judge if "SanityCheck" event is received, it will issue the
sanity_check() and send "SanityCheckPassed" back if succeeded.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
 meta/classes/sanity.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index c3d4e58..687ddeb 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -455,6 +455,9 @@  addhandler check_sanity_eventhandler
 python check_sanity_eventhandler() {
     if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1":
         check_sanity(e)
+    elif bb.event.getName(e) == "SanityCheck":
+        check_sanity(e)
+        bb.event.fire(bb.event.SanityCheckPassed(), e.data)
 
     return
 }