From: Joshua Lock <josh@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] sanity: disable mirrors for connectivity check
Date: Fri, 16 Sep 2011 10:12:37 -0700 [thread overview]
Message-ID: <1316193157.2325.0.camel@scimitar> (raw)
In-Reply-To: <9320024626bed55a7c6058131e1cb6c47944a36d.1316037832.git.josh@linux.intel.com>
Any comments?
On Wed, 2011-09-14 at 15:09 -0700, Joshua Lock wrote:
> It's difficult to test a range of fetchers when using mirrors, therefore create a throwaway
> copy of the datastore and delete the MIRROR and PREMIRROR variables to ensure they aren't
> used in the connectivity check.
>
> Signed-off-by: Joshua Lock <josh@linux.intel.com>
> ---
> meta/classes/sanity.bbclass | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
> index 93008cc..6ed43b2 100644
> --- a/meta/classes/sanity.bbclass
> +++ b/meta/classes/sanity.bbclass
> @@ -94,14 +94,18 @@ def check_connectivity(d):
> # CONNECTIVITY_CHECK_URIS are set
> network_enabled = not bb.data.getVar('BB_NO_NETWORK', d, True)
> check_enabled = len(test_uris)
> + # Take a copy of the data store and unset MIRRORS and PREMIRROS
> + data = bb.data.createCopy(d)
> + data.delVar('PREMIRRORS')
> + data.delVar('MIRRORS')
> if check_enabled and network_enabled:
> try:
> - fetcher = bb.fetch2.Fetch(test_uris, d)
> + fetcher = bb.fetch2.Fetch(test_uris, data)
> fetcher.checkstatus()
> except Exception:
> # Allow the message to be configured so that users can be
> # pointed to a support mechanism.
> - msg = bb.data.getVar('CONNECTIVITY_CHECK_MSG', d, True) or ""
> + msg = bb.data.getVar('CONNECTIVITY_CHECK_MSG', data, True) or ""
> if len(msg) == 0:
> msg = "Failed to fetch test data from the network. Please ensure your network is configured correctly.\n"
> retval = msg
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
prev parent reply other threads:[~2011-09-16 17:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-14 22:09 [PATCH 0/1] Disable mirrors for connectivity checks Joshua Lock
2011-09-14 22:09 ` [PATCH 1/1] sanity: disable mirrors for connectivity check Joshua Lock
2011-09-16 17:07 ` Richard Purdie
2011-09-16 17:12 ` Joshua Lock [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1316193157.2325.0.camel@scimitar \
--to=josh@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox