* [PATCH 1/2] sanity.bbclass: trigger network tests explicitly
@ 2012-10-11 11:44 Bogdan Marinescu
2012-10-18 20:16 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Bogdan Marinescu @ 2012-10-11 11:44 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/classes/sanity.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index f2e9a74..3806bc5 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
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] sanity.bbclass: trigger network tests explicitly
2012-10-11 11:44 [PATCH 1/2] sanity.bbclass: trigger network tests explicitly Bogdan Marinescu
@ 2012-10-18 20:16 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-10-18 20:16 UTC (permalink / raw)
To: Bogdan Marinescu; +Cc: openembedded-core
On 10/11/2012 04:44 AM, Bogdan Marinescu wrote:
> 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>
> ---
> meta/classes/sanity.bbclass | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index f2e9a74..3806bc5 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
> }
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-18 20:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11 11:44 [PATCH 1/2] sanity.bbclass: trigger network tests explicitly Bogdan Marinescu
2012-10-18 20:16 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox