diff options
Diffstat (limited to 'bitbake/lib/bb/tests/fetch.py')
| -rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 84862247e0..94173c14a8 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
| @@ -405,13 +405,16 @@ class MirrorUriTest(FetcherTest): | |||
| 405 | 'http://otherdownloads.yoctoproject.org/downloads/bitbake-1.0.tar.gz', | 405 | 'http://otherdownloads.yoctoproject.org/downloads/bitbake-1.0.tar.gz', |
| 406 | 'http://downloads2.yoctoproject.org/downloads/bitbake-1.0.tar.gz']) | 406 | 'http://downloads2.yoctoproject.org/downloads/bitbake-1.0.tar.gz']) |
| 407 | 407 | ||
| 408 | recmirrorvar = "https://.*/[^/]* http://AAAA/A/A/A/ \n" | 408 | recmirrorvar = "https://.*/[^/]* http://AAAA/A/A/A/ \n" \ |
| 409 | "https://.*/[^/]* https://BBBB/B/B/B/ \n" | ||
| 409 | 410 | ||
| 410 | def test_recursive(self): | 411 | def test_recursive(self): |
| 411 | fetcher = bb.fetch.FetchData("https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d) | 412 | fetcher = bb.fetch.FetchData("https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d) |
| 412 | mirrors = bb.fetch2.mirror_from_string(self.recmirrorvar) | 413 | mirrors = bb.fetch2.mirror_from_string(self.recmirrorvar) |
| 413 | uris, uds = bb.fetch2.build_mirroruris(fetcher, mirrors, self.d) | 414 | uris, uds = bb.fetch2.build_mirroruris(fetcher, mirrors, self.d) |
| 414 | self.assertEqual(uris, ['http://AAAA/A/A/A/bitbake/bitbake-1.0.tar.gz']) | 415 | self.assertEqual(uris, ['http://AAAA/A/A/A/bitbake/bitbake-1.0.tar.gz', |
| 416 | 'https://BBBB/B/B/B/bitbake/bitbake-1.0.tar.gz', | ||
| 417 | 'http://AAAA/A/A/A/B/B/bitbake/bitbake-1.0.tar.gz']) | ||
| 415 | 418 | ||
| 416 | class FetcherLocalTest(FetcherTest): | 419 | class FetcherLocalTest(FetcherTest): |
| 417 | def setUp(self): | 420 | def setUp(self): |
