mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
bitbake: tests: fetch: use lower case hostnames
Do not use upper case hostnames because the hostname is case insensitive and maybe decoded into lower case to follow the common style. (Bitbake rev: 554b7048412c4c67bf895a8b98822b54ac3a66db) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e69304675d
commit
34bb313e90
@@ -570,16 +570,16 @@ 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/ " \
|
||||
"https://.*/[^/]* https://BBBB/B/B/B/"
|
||||
recmirrorvar = "https://.*/[^/]* http://aaaa/A/A/A/ " \
|
||||
"https://.*/[^/]* https://bbbb/B/B/B/"
|
||||
|
||||
def test_recursive(self):
|
||||
fetcher = bb.fetch.FetchData("https://downloads.yoctoproject.org/releases/bitbake/bitbake-1.0.tar.gz", self.d)
|
||||
mirrors = bb.fetch2.mirror_from_string(self.recmirrorvar)
|
||||
uris, uds = bb.fetch2.build_mirroruris(fetcher, mirrors, self.d)
|
||||
self.assertEqual(uris, ['http://AAAA/A/A/A/bitbake/bitbake-1.0.tar.gz',
|
||||
'https://BBBB/B/B/B/bitbake/bitbake-1.0.tar.gz',
|
||||
'http://AAAA/A/A/A/B/B/bitbake/bitbake-1.0.tar.gz'])
|
||||
self.assertEqual(uris, ['http://aaaa/A/A/A/bitbake/bitbake-1.0.tar.gz',
|
||||
'https://bbbb/B/B/B/bitbake/bitbake-1.0.tar.gz',
|
||||
'http://aaaa/A/A/A/B/B/bitbake/bitbake-1.0.tar.gz'])
|
||||
|
||||
|
||||
class GitDownloadDirectoryNamingTest(FetcherTest):
|
||||
|
||||
Reference in New Issue
Block a user