summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/tests/fetch.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 79be1be0b0..9bed06ba0e 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -869,27 +869,27 @@ class FetcherNetworkTest(FetcherTest):
869 self.assertRaises(bb.fetch.ParameterError, self.gitfetcher, url, url) 869 self.assertRaises(bb.fetch.ParameterError, self.gitfetcher, url, url)
870 870
871 @skipIfNoNetwork() 871 @skipIfNoNetwork()
872 def test_gitfetch_premirror(self): 872 def test_gitfetch_finds_local_tarball_for_mirrored_url_when_previous_downloaded_by_the_recipe_url(self):
873 url1 = "git://git.openembedded.org/bitbake" 873 recipeurl = "git://git.openembedded.org/bitbake"
874 url2 = "git://someserver.org/bitbake" 874 mirrorurl = "git://someserver.org/bitbake"
875 self.d.setVar("PREMIRRORS", "git://someserver.org/bitbake git://git.openembedded.org/bitbake \n") 875 self.d.setVar("PREMIRRORS", "git://someserver.org/bitbake git://git.openembedded.org/bitbake \n")
876 self.gitfetcher(url1, url2) 876 self.gitfetcher(recipeurl, mirrorurl)
877 877
878 @skipIfNoNetwork() 878 @skipIfNoNetwork()
879 def test_gitfetch_premirror2(self): 879 def test_gitfetch_finds_local_tarball_when_previous_downloaded_from_a_premirror(self):
880 url1 = url2 = "git://someserver.org/bitbake" 880 recipeurl = "git://someserver.org/bitbake"
881 self.d.setVar("PREMIRRORS", "git://someserver.org/bitbake git://git.openembedded.org/bitbake \n") 881 self.d.setVar("PREMIRRORS", "git://someserver.org/bitbake git://git.openembedded.org/bitbake \n")
882 self.gitfetcher(url1, url2) 882 self.gitfetcher(recipeurl, recipeurl)
883 883
884 @skipIfNoNetwork() 884 @skipIfNoNetwork()
885 def test_gitfetch_premirror3(self): 885 def test_gitfetch_finds_local_repository_when_premirror_rewrites_the_recipe_url(self):
886 realurl = "git://git.openembedded.org/bitbake" 886 realurl = "git://git.openembedded.org/bitbake"
887 dummyurl = "git://someserver.org/bitbake" 887 recipeurl = "git://someserver.org/bitbake"
888 self.sourcedir = self.unpackdir.replace("unpacked", "sourcemirror.git") 888 self.sourcedir = self.unpackdir.replace("unpacked", "sourcemirror.git")
889 os.chdir(self.tempdir) 889 os.chdir(self.tempdir)
890 bb.process.run("git clone %s %s 2> /dev/null" % (realurl, self.sourcedir), shell=True) 890 bb.process.run("git clone %s %s 2> /dev/null" % (realurl, self.sourcedir), shell=True)
891 self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) 891 self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (recipeurl, self.sourcedir))
892 self.gitfetcher(dummyurl, dummyurl) 892 self.gitfetcher(recipeurl, recipeurl)
893 893
894 @skipIfNoNetwork() 894 @skipIfNoNetwork()
895 def test_git_submodule(self): 895 def test_git_submodule(self):