diff options
author | Bogdan Marinescu <bogdan.a.marinescu@intel.com> | 2012-10-11 14:44:46 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-18 12:13:43 +0100 |
commit | a3720a51c9578bb70773accf0985d61cf1e05f6e (patch) | |
tree | da7265f5fad4091b4e905be8157133dcf9050861 /meta/classes | |
parent | 2d89cff42af2bb0049224bfaaebaa2b21966169f (diff) | |
download | poky-a3720a51c9578bb70773accf0985d61cf1e05f6e.tar.gz |
sanity.bbclass: trigger network tests explicitly
The network tests in sanity.bbclass can now be trigerred explicitly
by firing the NetworkTest event. This is part of the fix for bug #3026.
[YOCTO #3026]
(From OE-Core rev: f1f43d55dbb020a0145c58731d4259fd906d9d1e)
Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 f2e9a74441..3806bc5ce7 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -639,6 +639,9 @@ python check_sanity_eventhandler() { | |||
639 | sanity_data.setVar("SANITY_USE_EVENTS", "1") | 639 | sanity_data.setVar("SANITY_USE_EVENTS", "1") |
640 | check_sanity(sanity_data) | 640 | check_sanity(sanity_data) |
641 | bb.event.fire(bb.event.SanityCheckPassed(), e.data) | 641 | bb.event.fire(bb.event.SanityCheckPassed(), e.data) |
642 | elif bb.event.getName(e) == "NetworkTest": | ||
643 | sanity_data = copy_data(e) | ||
644 | bb.event.fire(bb.event.NetworkTestFailed() if check_connectivity(sanity_data) else bb.event.NetworkTestPassed(), e.data) | ||
642 | 645 | ||
643 | return | 646 | return |
644 | } | 647 | } |