Skip to contentSkip to conversation

Quieten network connectivity check

PATCH New Joshua Lock 1 participant 2 messages Jul 13, 2011

lore
Share & tools
lore
#0 lore raw

cover Quieten network connectivity check

The network sanity check is quite noisy atm, this patch addresses the noise of complaining about checksums for the non scm sources.

I still need to work out a clean way to quieten the info messages that the fetch is running, i.e.

NOTE: fetch http://autobuilder.yoctoproject.org/sources/git2_git.yoctoproject.org.yocto-firewall-test.tar.gz
NOTE: fetch https://eula-downloads.yoctoproject.org/index.php
NOTE: fetch http://bugzilla.yoctoproject.org/report.cgi

Ideas welcome ;-)

The following changes since commit a6e9edb7b4b5b0bdb067a59d691d33fba8948963:

sato-sdk: add clutter for sato-sdk image (2011-07-12 15:23:35 +0100)

are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib josh/sanity
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=josh/sanity

Joshua Lock (1):
sanity: don't warn about SRC_URI checksums for connectivity test uris

 meta/classes/sanity.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.6
#1 lore raw

PATCH 1/1 sanity: don't warn about SRC_URI checksums for connectivity test uris

This patch creates the .done files for the CONNECTIVITY_CHECK_URIS in the sanity DL_DIR so that the user isn't warned about there not being checksums set for the URI's when sanity checking the network.

---
 meta/classes/sanity.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
meta/classes/sanity.bbclass +6 -0
index c9d37c9..b586de9 100644
@@ -96,10 +96,16 @@ def check_connectivity(d):
         data = bb.data.createCopy(d)
         bookmark = os.getcwd()
         dldir = bb.data.expand('${TMPDIR}/sanity', data)
+        bb.utils.mkdirhier(dldir)
         bb.data.setVar('DL_DIR', dldir, data)
 
         try:
             fetcher = bb.fetch2.Fetch(test_uris, data)
+            # Touch .done files for the CONNECTIVITY_CHECK_URIS so that the user
+            # doesn't see checksum warnings
+            for uri in fetcher.urls:
+	        ud = fetcher.ud[uri]
+		open(ud.donestamp, 'w').close()
             fetcher.download()
             fetcher.clean(test_uris)
         except Exception:
Signature · 1 line
1.7.6