[OE-core] [PATCH 1/1] sanity.bbclass: Add a new case to issue sanity_check()
Dongxiao Xu
dongxiao.xu at intel.com
Tue Apr 24 08:18:15 UTC 2012
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>
---
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
}
--
1.7.4.1
More information about the Openembedded-core
mailing list