]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Add a new case to issue sanity_check()
authorDongxiao Xu <dongxiao.xu@intel.com>
Tue, 24 Apr 2012 08:18:15 +0000 (16:18 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Apr 2012 09:14:17 +0000 (10:14 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass

index c3d4e5888dd79d9aed2429b558b88b0f3615a12a..687ddebccf77b3b105052eb18c23b18de3c5bd7c 100644 (file)
@@ -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
 }