summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-04-28 12:27:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-14 11:43:57 +0100
commitf6e13ec5357f8cfe3ee3a5d3c6c4ef84076847ef (patch)
tree410d853d78d3f73e3b323f76b8136b6ac8d17b16 /meta/classes/sanity.bbclass
parentc9ec5427609f084d9cbfb7336777fe1e3d0f3ef1 (diff)
downloadpoky-f6e13ec5357f8cfe3ee3a5d3c6c4ef84076847ef.tar.gz
sanity.bbclass: Increased verbosity for connectivity check
The connectivity sanity error doesn't tell you which URL failed to fetch nor how it failed. This provides the URL that failed and why it failed using BBFetchException messages during the connectivity check. [YOCTO #7592] (From OE-Core rev: e025d1ff02795fc9236b41606e916749f0d5e959) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index f8b9fac453..fc8c980515 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -278,12 +278,12 @@ def check_connectivity(d):
278 try: 278 try:
279 fetcher = bb.fetch2.Fetch(test_uris, data) 279 fetcher = bb.fetch2.Fetch(test_uris, data)
280 fetcher.checkstatus() 280 fetcher.checkstatus()
281 except Exception: 281 except Exception as err:
282 # Allow the message to be configured so that users can be 282 # Allow the message to be configured so that users can be
283 # pointed to a support mechanism. 283 # pointed to a support mechanism.
284 msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or "" 284 msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or ""
285 if len(msg) == 0: 285 if len(msg) == 0:
286 msg = "Failed to fetch test data from the network. Please ensure your network is configured correctly.\n" 286 msg = "%s. Please ensure your network is configured correctly.\n" % err
287 retval = msg 287 retval = msg
288 288
289 return retval 289 return retval