summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-24 16:18:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-24 10:14:49 +0100
commitf6864c1eed5b22db68a43e3380ad7529d2f0f706 (patch)
treeb9019fddaf6da21272c1c496f08bc708d50c0597
parent2a6e1b0a0ccd11806723be7d9959c387f5ecbe17 (diff)
downloadpoky-f6864c1eed5b22db68a43e3380ad7529d2f0f706.tar.gz
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. (From OE-Core rev: 19704f9e69ecf09531687385b478b47f49fe372d) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sanity.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index c3d4e5888d..687ddebccf 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -455,6 +455,9 @@ addhandler check_sanity_eventhandler
455python check_sanity_eventhandler() { 455python check_sanity_eventhandler() {
456 if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1": 456 if bb.event.getName(e) == "ConfigParsed" and e.data.getVar("BB_WORKERCONTEXT", True) != "1" and e.data.getVar("DISABLE_SANITY_CHECKS", True) != "1":
457 check_sanity(e) 457 check_sanity(e)
458 elif bb.event.getName(e) == "SanityCheck":
459 check_sanity(e)
460 bb.event.fire(bb.event.SanityCheckPassed(), e.data)
458 461
459 return 462 return
460} 463}