Patchwork [v2] sanity.bbclass: Fix invalid test for network error

login
register
mail settings
Submitter Bogdan Marinescu
Date Oct. 2, 2012, 9:52 a.m.
Message ID <1349171520-7756-1-git-send-email-bogdan.a.marinescu@intel.com>
Download mbox | patch
Permalink /patch/37591/
State New
Headers show

Comments

Bogdan Marinescu - Oct. 2, 2012, 9:52 a.m.
The test for network error in sanity.bbclass was negated.

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
---
 meta/classes/sanity.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Saul Wold - Oct. 2, 2012, 3:29 p.m.
On 10/02/2012 02:52 AM, Bogdan Marinescu wrote:
> The test for network error in sanity.bbclass was negated.
>
> Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
> ---
>   meta/classes/sanity.bbclass |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index e2095dd..f2e9a74 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -174,7 +174,7 @@ def check_sanity_tmpdir_change(tmpdir, data):
>       # Check that we can fetch from various network transports
>       errmsg = check_connectivity(data)
>       testmsg = testmsg + check_connectivity(data)
> -    return testmsg, errmsg == ""
> +    return testmsg, errmsg != ""
>
>   def check_sanity_version_change(data):
>       # Sanity checks to be done when SANITY_VERSION changes
>
Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index e2095dd..f2e9a74 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -174,7 +174,7 @@  def check_sanity_tmpdir_change(tmpdir, data):
     # Check that we can fetch from various network transports
     errmsg = check_connectivity(data)
     testmsg = testmsg + check_connectivity(data)
-    return testmsg, errmsg == ""
+    return testmsg, errmsg != ""
         
 def check_sanity_version_change(data):
     # Sanity checks to be done when SANITY_VERSION changes