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:56 +0100 |
commit | 84087dfade414fa4c8d6a37fea6533abfcdd9c51 (patch) | |
tree | b710637bd1bce3d28c362f88dc2b5e2ede9b238c /bitbake/lib/bb/tests/fetch.py | |
parent | 27915d3d8a851253c0f019909b7203186a681b55 (diff) | |
download | poky-84087dfade414fa4c8d6a37fea6533abfcdd9c51.tar.gz |
bitbake: tests/fetch: Drop unnecessary duplicated function
Function "git" is defined in super class FetcherTest already.
(Bitbake rev: bfed4ad2d50bcd635bb2ef99977e03e879fc79a2)
Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests/fetch.py')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index a09c414ad8..18e585721c 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -2806,15 +2806,6 @@ class GitSharedTest(FetcherTest): | |||
2806 | 2806 | ||
2807 | class FetchPremirroronlyLocalTest(FetcherTest): | 2807 | class FetchPremirroronlyLocalTest(FetcherTest): |
2808 | 2808 | ||
2809 | def git(self, cmd, cwd=None): | ||
2810 | if isinstance(cmd, str): | ||
2811 | cmd = 'git ' + cmd | ||
2812 | else: | ||
2813 | cmd = ['git'] + cmd | ||
2814 | if cwd is None: | ||
2815 | cwd = self.gitdir | ||
2816 | return bb.process.run(cmd, cwd=cwd)[0] | ||
2817 | |||
2818 | def setUp(self): | 2809 | def setUp(self): |
2819 | super(FetchPremirroronlyLocalTest, self).setUp() | 2810 | super(FetchPremirroronlyLocalTest, self).setUp() |
2820 | self.mirrordir = os.path.join(self.tempdir, "mirrors") | 2811 | self.mirrordir = os.path.join(self.tempdir, "mirrors") |