Skip to contentSkip to conversation

tests/fetch: Drop unnecessary duplicated function

PATCH New Pavel Zhukov 1 participant 1 message Jun 9, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/fetch: Drop unnecessary duplicated function

Function "git" is defined in super class FetcherTest already.

---
 lib/bb/tests/fetch.py | 9 ---------
 1 file changed, 9 deletions(-)
lib/bb/tests/fetch.py +0 -9
index a09c414a..18e58572 100644
@@ -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")
Signature · 1 line
2.35.1