diff options
author | Pavel Zhukov <pavel@zhukoff.net> | 2022-06-09 18:52:27 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-11 10:30:13 +0100 |
commit | bfed4ad2d50bcd635bb2ef99977e03e879fc79a2 (patch) | |
tree | 4c32f555e13b71c354efbe8867cc5d7c27ea575b | |
parent | 3c0cd401472ffee06d5a93bdba566cb033851fcf (diff) | |
download | bitbake-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.py | 9 |
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") |