diff options
-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 c156168151..b921a952e4 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -390,6 +390,7 @@ class FetcherTest(unittest.TestCase): | |||
390 | if os.environ.get("BB_TMPDIR_NOCLEAN") == "yes": | 390 | if os.environ.get("BB_TMPDIR_NOCLEAN") == "yes": |
391 | print("Not cleaning up %s. Please remove manually." % self.tempdir) | 391 | print("Not cleaning up %s. Please remove manually." % self.tempdir) |
392 | else: | 392 | else: |
393 | bb.process.run('chmod u+rw -R %s' % self.tempdir) | ||
393 | bb.utils.prunedir(self.tempdir) | 394 | bb.utils.prunedir(self.tempdir) |
394 | 395 | ||
395 | class MirrorUriTest(FetcherTest): | 396 | class MirrorUriTest(FetcherTest): |
@@ -1602,6 +1603,7 @@ class GitShallowTest(FetcherTest): | |||
1602 | 1603 | ||
1603 | # fetch and unpack, from the shallow tarball | 1604 | # fetch and unpack, from the shallow tarball |
1604 | bb.utils.remove(self.gitdir, recurse=True) | 1605 | bb.utils.remove(self.gitdir, recurse=True) |
1606 | bb.process.run('chmod u+w -R "%s"' % ud.clonedir) | ||
1605 | bb.utils.remove(ud.clonedir, recurse=True) | 1607 | bb.utils.remove(ud.clonedir, recurse=True) |
1606 | bb.utils.remove(ud.clonedir.replace('gitsource', 'gitsubmodule'), recurse=True) | 1608 | bb.utils.remove(ud.clonedir.replace('gitsource', 'gitsubmodule'), recurse=True) |
1607 | 1609 | ||
@@ -1831,7 +1833,7 @@ class GitShallowTest(FetcherTest): | |||
1831 | open(os.path.join(self.srcdir, 'c'), 'w').close() | 1833 | open(os.path.join(self.srcdir, 'c'), 'w').close() |
1832 | self.git('annex add c', cwd=self.srcdir) | 1834 | self.git('annex add c', cwd=self.srcdir) |
1833 | self.git('commit --author "Foo Bar <foo@bar>" -m annex-c -a', cwd=self.srcdir) | 1835 | self.git('commit --author "Foo Bar <foo@bar>" -m annex-c -a', cwd=self.srcdir) |
1834 | bb.process.run('chmod u+w -R %s' % os.path.join(self.srcdir, '.git', 'annex')) | 1836 | bb.process.run('chmod u+w -R %s' % self.srcdir) |
1835 | 1837 | ||
1836 | uri = 'gitannex://%s;protocol=file;subdir=${S}' % self.srcdir | 1838 | uri = 'gitannex://%s;protocol=file;subdir=${S}' % self.srcdir |
1837 | fetcher, ud = self.fetch_shallow(uri) | 1839 | fetcher, ud = self.fetch_shallow(uri) |