aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Zhukov <pavel@zhukoff.net>2022-06-09 18:52:27 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-11 10:30:13 +0100
commitbfed4ad2d50bcd635bb2ef99977e03e879fc79a2 (patch)
tree4c32f555e13b71c354efbe8867cc5d7c27ea575b
parent3c0cd401472ffee06d5a93bdba566cb033851fcf (diff)
downloadbitbake-bfed4ad2d50bcd635bb2ef99977e03e879fc79a2.tar.gz
tests/fetch: Drop unnecessary duplicated function
Function "git" is defined in super class FetcherTest already. Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/tests/fetch.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index a09c414ad..18e585721 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -2806,15 +2806,6 @@ class GitSharedTest(FetcherTest):
class FetchPremirroronlyLocalTest(FetcherTest):
- def git(self, cmd, cwd=None):
- if isinstance(cmd, str):
- cmd = 'git ' + cmd
- else:
- cmd = ['git'] + cmd
- if cwd is None:
- cwd = self.gitdir
- return bb.process.run(cmd, cwd=cwd)[0]
-
def setUp(self):
super(FetchPremirroronlyLocalTest, self).setUp()
self.mirrordir = os.path.join(self.tempdir, "mirrors")