tests/fetch: Drop unnecessary duplicated function
PATCH 1/1 tests/fetch: Drop unnecessary duplicated function
Function "git" is defined in super class FetcherTest already.
Signed-off-by Pavel Zhukov <[email protected]>
--- lib/bb/tests/fetch.py | 9 --------- 1 file changed, 9 deletions(-)
lib/bb/tests/fetch.py +0 -9
@@ -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