summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/fetch.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests/fetch.py')
-rw-r--r--bitbake/lib/bb/tests/fetch.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index bb30ed6513..fc94f4c02f 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -3083,6 +3083,24 @@ class FetchPremirroronlyLocalTest(FetcherTest):
3083 self.git("checkout {}".format(head), self.gitdir) 3083 self.git("checkout {}".format(head), self.gitdir)
3084 return newrev 3084 return newrev
3085 3085
3086 def test_mirror_multiple_fetches(self):
3087 self.make_git_repo()
3088 self.d.setVar("SRCREV", self.git_new_commit())
3089 fetcher = bb.fetch.Fetch([self.recipe_url], self.d)
3090 fetcher.download()
3091 fetcher.unpack(self.unpackdir)
3092 ## New commit in premirror. it's not in the download_dir
3093 self.d.setVar("SRCREV", self.git_new_commit())
3094 fetcher2 = bb.fetch.Fetch([self.recipe_url], self.d)
3095 fetcher2.download()
3096 fetcher2.unpack(self.unpackdir)
3097 ## New commit in premirror. it's not in the download_dir
3098 self.d.setVar("SRCREV", self.git_new_commit())
3099 fetcher3 = bb.fetch.Fetch([self.recipe_url], self.d)
3100 fetcher3.download()
3101 fetcher3.unpack(self.unpackdir)
3102
3103
3086 def test_mirror_commit_nonexistent(self): 3104 def test_mirror_commit_nonexistent(self):
3087 self.make_git_repo() 3105 self.make_git_repo()
3088 self.d.setVar("SRCREV", "0"*40) 3106 self.d.setVar("SRCREV", "0"*40)