* [PATCH] [RFC] tests/fetch.py: Add test showing recursion failure in url mapping
@ 2015-09-10 22:05 Mark Hatle
2015-09-10 23:16 ` Mark Hatle
0 siblings, 1 reply; 2+ messages in thread
From: Mark Hatle @ 2015-09-10 22:05 UTC (permalink / raw)
To: bitbake-devel
Adding this test results in a failure:
RuntimeError: maximum recursion depth exceeded in cmp
The mirror processing runs over and over and over on the same URL until the
stack is exhausted. I do not have a proposed solution ot this problem.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
lib/bb/tests/fetch.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 8486224..39df138 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -405,7 +405,8 @@ class MirrorUriTest(FetcherTest):
'http://otherdownloads.yoctoproject.org/downloads/bitbake-1.0.tar.gz',
'http://downloads2.yoctoproject.org/downloads/bitbake-1.0.tar.gz'])
- recmirrorvar = "https://.*/[^/]* http://AAAA/A/A/A/ \n"
+ recmirrorvar = "https://.*/[^/]* http://AAAA/A/A/A/ \n" \
+ "https://.*/[^/]* https://BBBB/B/B/B/ \n"
def test_recursive(self):
fetcher = bb.fetch.FetchData("https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d)
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] [RFC] tests/fetch.py: Add test showing recursion failure in url mapping
2015-09-10 22:05 [PATCH] [RFC] tests/fetch.py: Add test showing recursion failure in url mapping Mark Hatle
@ 2015-09-10 23:16 ` Mark Hatle
0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2015-09-10 23:16 UTC (permalink / raw)
To: bitbake-devel
After sending this, I realized there was an easy way to break the recursion.
See the patch sent after this one.
On 9/10/15 5:05 PM, Mark Hatle wrote:
> Adding this test results in a failure:
>
> RuntimeError: maximum recursion depth exceeded in cmp
>
> The mirror processing runs over and over and over on the same URL until the
> stack is exhausted. I do not have a proposed solution ot this problem.
>
> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
> ---
> lib/bb/tests/fetch.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
> index 8486224..39df138 100644
> --- a/lib/bb/tests/fetch.py
> +++ b/lib/bb/tests/fetch.py
> @@ -405,7 +405,8 @@ class MirrorUriTest(FetcherTest):
> 'http://otherdownloads.yoctoproject.org/downloads/bitbake-1.0.tar.gz',
> 'http://downloads2.yoctoproject.org/downloads/bitbake-1.0.tar.gz'])
>
> - recmirrorvar = "https://.*/[^/]* http://AAAA/A/A/A/ \n"
> + recmirrorvar = "https://.*/[^/]* http://AAAA/A/A/A/ \n" \
> + "https://.*/[^/]* https://BBBB/B/B/B/ \n"
>
> def test_recursive(self):
> fetcher = bb.fetch.FetchData("https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d)
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-10 23:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 22:05 [PATCH] [RFC] tests/fetch.py: Add test showing recursion failure in url mapping Mark Hatle
2015-09-10 23:16 ` Mark Hatle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.