diff options
author | Ross Burton <ross.burton@arm.com> | 2022-07-22 14:14:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-25 22:59:00 +0100 |
commit | e49831d1f8e4339181658f3897be56d8b4368c72 (patch) | |
tree | 23a3a70f9fa58ffbf751605f1033f6ef0f47dc4c /meta/lib/oeqa/selftest/cases/oelib | |
parent | 454a0ea700b1118e8b24136e03bb03879db960e1 (diff) | |
download | poky-e49831d1f8e4339181658f3897be56d8b4368c72.tar.gz |
oeqa/selftest: rename git.py to intercept.py
By naming this test class git.py, any attempt to import GitPython (as
needed by oelib.buildhistory) failed.
As this class exercises the intercepts, rename it to intercept.py.
(From OE-Core rev: d557cbbf86767bc2ebf2beb3d70af3b3ca5e0529)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/oelib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/oelib/buildhistory.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py b/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py index 802a91a488..33bd6df2f3 100644 --- a/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py +++ b/meta/lib/oeqa/selftest/cases/oelib/buildhistory.py | |||
@@ -3,6 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | import os | 5 | import os |
6 | import sys | ||
6 | from oeqa.selftest.case import OESelftestTestCase | 7 | from oeqa.selftest.case import OESelftestTestCase |
7 | import tempfile | 8 | import tempfile |
8 | import operator | 9 | import operator |
@@ -11,15 +12,14 @@ from oeqa.utils.commands import get_bb_var | |||
11 | class TestBlobParsing(OESelftestTestCase): | 12 | class TestBlobParsing(OESelftestTestCase): |
12 | 13 | ||
13 | def setUp(self): | 14 | def setUp(self): |
14 | import time | ||
15 | self.repo_path = tempfile.mkdtemp(prefix='selftest-buildhistory', | 15 | self.repo_path = tempfile.mkdtemp(prefix='selftest-buildhistory', |
16 | dir=get_bb_var('TOPDIR')) | 16 | dir=get_bb_var('TOPDIR')) |
17 | 17 | ||
18 | try: | 18 | try: |
19 | from git import Repo | 19 | from git import Repo |
20 | self.repo = Repo.init(self.repo_path) | 20 | self.repo = Repo.init(self.repo_path) |
21 | except ImportError: | 21 | except ImportError as e: |
22 | self.skipTest('Python module GitPython is not present') | 22 | self.skipTest('Python module GitPython is not present (%s) (%s)' % (e, sys.path)) |
23 | 23 | ||
24 | self.test_file = "test" | 24 | self.test_file = "test" |
25 | self.var_map = {} | 25 | self.var_map = {} |