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>
This commit is contained in:
parent
2d89cff42a
commit
a3720a51c9
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue