[oe-commits] Dongxiao Xu : sanity.bbclass: Add a new case to issue sanity_check()

git at git.openembedded.org git at git.openembedded.org
Tue Apr 24 09:20:48 UTC 2012


Module: openembedded-core.git
Branch: denzil
Commit: 1b6d8b015e1996509851fec258b0c4d7a9cfb88a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1b6d8b015e1996509851fec258b0c4d7a9cfb88a

Author: Dongxiao Xu <dongxiao.xu at intel.com>
Date:   Tue Apr 24 16:18:15 2012 +0800

sanity.bbclass: Add a new case to issue sanity_check()

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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/sanity.bbclass |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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
 }





More information about the Openembedded-commits mailing list