From: Dongxiao Xu Date: Tue, 24 Apr 2012 08:18:15 +0000 (+0800) Subject: sanity.bbclass: Add a new case to issue sanity_check() X-Git-Tag: 2015-4~10918 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=19704f9e69ecf09531687385b478b47f49fe372d;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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 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 }