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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 0f7585e119..9291ce4a06 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -1798,7 +1798,7 @@ class GitShallowTest(FetcherTest):
1798 1798
1799 # Set up the mirror 1799 # Set up the mirror
1800 mirrordir = os.path.join(self.tempdir, 'mirror') 1800 mirrordir = os.path.join(self.tempdir, 'mirror')
1801 os.rename(self.dldir, mirrordir) 1801 bb.utils.rename(self.dldir, mirrordir)
1802 self.d.setVar('PREMIRRORS', 'gitsm://.*/.* file://%s/\n' % mirrordir) 1802 self.d.setVar('PREMIRRORS', 'gitsm://.*/.* file://%s/\n' % mirrordir)
1803 1803
1804 # Fetch from the mirror 1804 # Fetch from the mirror
@@ -1916,7 +1916,7 @@ class GitShallowTest(FetcherTest):
1916 bb.utils.mkdirhier(mirrordir) 1916 bb.utils.mkdirhier(mirrordir)
1917 self.d.setVar('PREMIRRORS', 'git://.*/.* file://%s/\n' % mirrordir) 1917 self.d.setVar('PREMIRRORS', 'git://.*/.* file://%s/\n' % mirrordir)
1918 1918
1919 os.rename(os.path.join(self.dldir, mirrortarball), 1919 bb.utils.rename(os.path.join(self.dldir, mirrortarball),
1920 os.path.join(mirrordir, mirrortarball)) 1920 os.path.join(mirrordir, mirrortarball))
1921 1921
1922 # Fetch from the mirror 1922 # Fetch from the mirror