diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-04-24 16:18:15 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-24 10:15:47 +0100 |
commit | 3ab5d73f0c49df9fefa2a46031d33436bbd7d7d8 (patch) | |
tree | f308c8cd36000c73132987a7b11cf61d9136f06f /meta | |
parent | 33f048240def1c6b796b65355ca61b1541144413 (diff) | |
download | poky-3ab5d73f0c49df9fefa2a46031d33436bbd7d7d8.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>
Diffstat (limited to 'meta')
-rw-r--r-- | 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 c3d4e5888d..687ddebccf 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -455,6 +455,9 @@ addhandler check_sanity_eventhandler | |||
455 | python check_sanity_eventhandler() { | 455 | python 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 | } |