diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 9a4f5f11e2..6300f563f2 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -371,6 +371,7 @@ class FetcherTest(unittest.TestCase): | |||
371 | if os.environ.get("BB_TMPDIR_NOCLEAN") == "yes": | 371 | if os.environ.get("BB_TMPDIR_NOCLEAN") == "yes": |
372 | print("Not cleaning up %s. Please remove manually." % self.tempdir) | 372 | print("Not cleaning up %s. Please remove manually." % self.tempdir) |
373 | else: | 373 | else: |
374 | bb.process.run('chmod u+rw -R %s' % self.tempdir) | ||
374 | bb.utils.prunedir(self.tempdir) | 375 | bb.utils.prunedir(self.tempdir) |
375 | 376 | ||
376 | class MirrorUriTest(FetcherTest): | 377 | class MirrorUriTest(FetcherTest): |
@@ -1538,6 +1539,7 @@ class GitShallowTest(FetcherTest): | |||
1538 | 1539 | ||
1539 | # fetch and unpack, from the shallow tarball | 1540 | # fetch and unpack, from the shallow tarball |
1540 | bb.utils.remove(self.gitdir, recurse=True) | 1541 | bb.utils.remove(self.gitdir, recurse=True) |
1542 | bb.process.run('chmod u+w -R "%s"' % ud.clonedir) | ||
1541 | bb.utils.remove(ud.clonedir, recurse=True) | 1543 | bb.utils.remove(ud.clonedir, recurse=True) |
1542 | bb.utils.remove(ud.clonedir.replace('gitsource', 'gitsubmodule'), recurse=True) | 1544 | bb.utils.remove(ud.clonedir.replace('gitsource', 'gitsubmodule'), recurse=True) |
1543 | 1545 | ||
@@ -1767,7 +1769,7 @@ class GitShallowTest(FetcherTest): | |||
1767 | open(os.path.join(self.srcdir, 'c'), 'w').close() | 1769 | open(os.path.join(self.srcdir, 'c'), 'w').close() |
1768 | self.git('annex add c', cwd=self.srcdir) | 1770 | self.git('annex add c', cwd=self.srcdir) |
1769 | self.git('commit --author "Foo Bar <foo@bar>" -m annex-c -a', cwd=self.srcdir) | 1771 | self.git('commit --author "Foo Bar <foo@bar>" -m annex-c -a', cwd=self.srcdir) |
1770 | bb.process.run('chmod u+w -R %s' % os.path.join(self.srcdir, '.git', 'annex')) | 1772 | bb.process.run('chmod u+w -R %s' % self.srcdir) |
1771 | 1773 | ||
1772 | uri = 'gitannex://%s;protocol=file;subdir=${S}' % self.srcdir | 1774 | uri = 'gitannex://%s;protocol=file;subdir=${S}' % self.srcdir |
1773 | fetcher, ud = self.fetch_shallow(uri) | 1775 | fetcher, ud = self.fetch_shallow(uri) |