<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 14, 2016 at 7:34 AM, Robert Yang <span dir="ltr"><<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":67f" class="a3s aXjCH m158634c1f9be4f74">The old code:<br>
network_enabled = not d.getVar('BB_NO_NETWORK', True)<br>
<br>
It is True only when BB_NO_NETWORK is not set (None),<br>
but BB_NO_NETWORK = "0" should also be True while "1" means no network,<br>
"0" means need network in a normal case.<br>
<br>
Signed-off-by: Robert Yang <<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>><br>
---<br>
 meta/classes/sanity.bbclass | 14 +++++++++-----<br>
 1 file changed, 9 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass<br>
index 7e383f9..c5e3809 100644<br>
--- a/meta/classes/sanity.bbclass<br>
+++ b/meta/classes/sanity.bbclass<br>
@@ -363,15 +363,19 @@ def check_connectivity(d):<br>
   test_uris = (d.getVar('CONNECTIVITY_CHECK_<wbr>URIS', True) or "").split()<br>
   retval = ""<br>
<br>
+Â Â bbn = d.getVar('BB_NO_NETWORK', True)<br>
+Â Â if bbn not in (None, '0', '1'):<br>
+    return 'BB_NO_NETWORK should be "0" or "1", but it is "%s"' % bbn</div></blockquote></div><br>Does this mirror the same logic used in bitbake? What’s the behavior if it’s set, but to the empty string?<br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>