diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index d06580db88..a008e7cc5b 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -888,6 +888,14 @@ class FetcherNetworkTest(FetcherTest): | |||
888 | self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) | 888 | self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) |
889 | 889 | ||
890 | @skipIfNoNetwork() | 890 | @skipIfNoNetwork() |
891 | def test_fetch_premirror_use_downloadfilename_to_fetch(self): | ||
892 | # Ensure downloadfilename is used when fetching from premirror. | ||
893 | self.d.setVar("PREMIRRORS", "http://.*/.* https://downloads.yoctoproject.org/releases/bitbake") | ||
894 | fetcher = bb.fetch.Fetch(["http://invalid.yoctoproject.org/releases/bitbake/bitbake-1.1.tar.gz;downloadfilename=bitbake-1.0.tar.gz"], self.d) | ||
895 | fetcher.download() | ||
896 | self.assertEqual(os.path.getsize(self.dldir + "/bitbake-1.0.tar.gz"), 57749) | ||
897 | |||
898 | @skipIfNoNetwork() | ||
891 | def gitfetcher(self, url1, url2): | 899 | def gitfetcher(self, url1, url2): |
892 | def checkrevision(self, fetcher): | 900 | def checkrevision(self, fetcher): |
893 | fetcher.unpack(self.unpackdir) | 901 | fetcher.unpack(self.unpackdir) |