summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests')
-rw-r--r--bitbake/lib/bb/tests/fetch.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 2c314f46d7..ff66315aa5 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -1580,3 +1580,17 @@ class GitShallowTest(FetcherTest):
1580 self.assertNotEqual(orig_revs, revs) 1580 self.assertNotEqual(orig_revs, revs)
1581 self.assertRefs(['master', 'origin/master']) 1581 self.assertRefs(['master', 'origin/master'])
1582 self.assertRevCount(orig_revs - 1758) 1582 self.assertRevCount(orig_revs - 1758)
1583
1584 @skipIfNoNetwork()
1585 def test_that_unpack_does_work_when_using_git_shallow_tarball_but_tarball_is_not_available(self):
1586 self.d.setVar('SRCREV', 'e5939ff608b95cdd4d0ab0e1935781ab9a276ac0')
1587 self.d.setVar('BB_GIT_SHALLOW', '1')
1588 self.d.setVar('BB_GENERATE_SHALLOW_TARBALLS', '1')
1589 fetcher = bb.fetch.Fetch(["git://git.yoctoproject.org/fstests"], self.d)
1590 fetcher.download()
1591
1592 bb.utils.remove(self.dldir + "/*.tar.gz")
1593 fetcher.unpack(self.unpackdir)
1594
1595 dir = os.listdir(self.unpackdir + "/git/")
1596 self.assertIn("fstests.doap", dir)