diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/oescripts.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py index b3261e512f..cd687816c8 100644 --- a/meta/lib/oeqa/selftest/cases/oescripts.py +++ b/meta/lib/oeqa/selftest/cases/oescripts.py | |||
@@ -34,21 +34,19 @@ class BuildhistoryDiffTests(BuildhistoryBase): | |||
34 | if expected_endlines: | 34 | if expected_endlines: |
35 | self.fail('Missing expected line endings:\n %s' % '\n '.join(expected_endlines)) | 35 | self.fail('Missing expected line endings:\n %s' % '\n '.join(expected_endlines)) |
36 | 36 | ||
37 | @unittest.skipUnless(importlib.util.find_spec("cairo"), "Python cairo module is not present") | ||
38 | class OEScriptTests(OESelftestTestCase): | 37 | class OEScriptTests(OESelftestTestCase): |
38 | scripts_dir = os.path.join(get_bb_var('COREBASE'), 'scripts') | ||
39 | |||
40 | @unittest.skipUnless(importlib.util.find_spec("cairo"), "Python cairo module is not present") | ||
41 | class OEPybootchartguyTests(OEScriptTests): | ||
39 | 42 | ||
40 | @classmethod | 43 | @classmethod |
41 | def setUpClass(cls): | 44 | def setUpClass(cls): |
42 | super(OEScriptTests, cls).setUpClass() | 45 | super(OEScriptTests, cls).setUpClass() |
43 | import cairo | ||
44 | bitbake("core-image-minimal -c rootfs -f") | 46 | bitbake("core-image-minimal -c rootfs -f") |
45 | cls.tmpdir = get_bb_var('TMPDIR') | 47 | cls.tmpdir = get_bb_var('TMPDIR') |
46 | cls.buildstats = cls.tmpdir + "/buildstats/" + sorted(os.listdir(cls.tmpdir + "/buildstats"))[-1] | 48 | cls.buildstats = cls.tmpdir + "/buildstats/" + sorted(os.listdir(cls.tmpdir + "/buildstats"))[-1] |
47 | 49 | ||
48 | scripts_dir = os.path.join(get_bb_var('COREBASE'), 'scripts') | ||
49 | |||
50 | class OEPybootchartguyTests(OEScriptTests): | ||
51 | |||
52 | def test_pybootchartguy_help(self): | 50 | def test_pybootchartguy_help(self): |
53 | runCmd('%s/pybootchartgui/pybootchartgui.py --help' % self.scripts_dir) | 51 | runCmd('%s/pybootchartgui/pybootchartgui.py --help' % self.scripts_dir) |
54 | 52 | ||
@@ -65,9 +63,7 @@ class OEPybootchartguyTests(OEScriptTests): | |||
65 | self.assertTrue(os.path.exists(self.tmpdir + "/charts.pdf")) | 63 | self.assertTrue(os.path.exists(self.tmpdir + "/charts.pdf")) |
66 | 64 | ||
67 | 65 | ||
68 | class OEGitproxyTests(OESelftestTestCase): | 66 | class OEGitproxyTests(OEScriptTests): |
69 | |||
70 | scripts_dir = os.path.join(get_bb_var('COREBASE'), 'scripts') | ||
71 | 67 | ||
72 | def test_oegitproxy_help(self): | 68 | def test_oegitproxy_help(self): |
73 | try: | 69 | try: |