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.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 11698f2091..62b88f1380 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -874,9 +874,6 @@ class FetchCheckStatusTest(FetcherTest):
874 874
875 875
876class GitMakeShallowTest(FetcherTest): 876class GitMakeShallowTest(FetcherTest):
877 bitbake_dir = os.path.join(os.path.dirname(os.path.join(os.path.abspath(__file__))), '..', '..', '..')
878 make_shallow_path = os.path.join(bitbake_dir, 'bin', 'git-make-shallow')
879
880 def setUp(self): 877 def setUp(self):
881 FetcherTest.setUp(self) 878 FetcherTest.setUp(self)
882 self.gitdir = os.path.join(self.tempdir, 'gitshallow') 879 self.gitdir = os.path.join(self.tempdir, 'gitshallow')
@@ -905,7 +902,7 @@ class GitMakeShallowTest(FetcherTest):
905 def make_shallow(self, args=None): 902 def make_shallow(self, args=None):
906 if args is None: 903 if args is None:
907 args = ['HEAD'] 904 args = ['HEAD']
908 return bb.process.run([self.make_shallow_path] + args, cwd=self.gitdir) 905 return bb.process.run([bb.fetch2.git.Git.make_shallow_path] + args, cwd=self.gitdir)
909 906
910 def add_empty_file(self, path, msg=None): 907 def add_empty_file(self, path, msg=None):
911 if msg is None: 908 if msg is None: