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:03:26 +0100 |
commit | f1f43d55dbb020a0145c58731d4259fd906d9d1e (patch) | |
tree | 88e7425a5809aa9f7681a17a5c319e7b7d6c1e97 /meta/classes/sanity.bbclass | |
parent | 8f1bdb4f4afd7f5f4c121be8ba82f4675f73e300 (diff) | |
download | openembedded-core-f1f43d55dbb020a0145c58731d4259fd906d9d1e.tar.gz openembedded-core-f1f43d55dbb020a0145c58731d4259fd906d9d1e.tar.bz2 openembedded-core-f1f43d55dbb020a0145c58731d4259fd906d9d1e.zip |
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]
Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-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() { sanity_data.setVar("SANITY_USE_EVENTS", "1") check_sanity(sanity_data) bb.event.fire(bb.event.SanityCheckPassed(), e.data) + elif bb.event.getName(e) == "NetworkTest": + sanity_data = copy_data(e) + bb.event.fire(bb.event.NetworkTestFailed() if check_connectivity(sanity_data) else bb.event.NetworkTestPassed(), e.data) return } |