From: Bogdan Marinescu Date: Thu, 11 Oct 2012 11:44:46 +0000 (+0300) Subject: sanity.bbclass: trigger network tests explicitly X-Git-Tag: 2015-4~8871 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=f1f43d55dbb020a0145c58731d4259fd906d9d1e;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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 }