diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/oescripts.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py index 217afe3775..7770b66a26 100644 --- a/meta/lib/oeqa/selftest/cases/oescripts.py +++ b/meta/lib/oeqa/selftest/cases/oescripts.py | |||
@@ -3,6 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | import os | 5 | import os |
6 | import unittest | ||
6 | from oeqa.selftest.case import OESelftestTestCase | 7 | from oeqa.selftest.case import OESelftestTestCase |
7 | from oeqa.selftest.cases.buildhistory import BuildhistoryBase | 8 | from oeqa.selftest.cases.buildhistory import BuildhistoryBase |
8 | from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer | 9 | from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer |
@@ -38,7 +39,7 @@ class OEScriptTests(OESelftestTestCase): | |||
38 | try: | 39 | try: |
39 | import cairo | 40 | import cairo |
40 | except ImportError: | 41 | except ImportError: |
41 | cls.skipTest('Python module cairo is not present') | 42 | raise unittest.SkipTest('Python module cairo is not present') |
42 | bitbake("core-image-minimal -c rootfs -f") | 43 | bitbake("core-image-minimal -c rootfs -f") |
43 | cls.tmpdir = get_bb_var('TMPDIR') | 44 | cls.tmpdir = get_bb_var('TMPDIR') |
44 | cls.buildstats = cls.tmpdir + "/buildstats/" + sorted(os.listdir(cls.tmpdir + "/buildstats"))[-1] | 45 | cls.buildstats = cls.tmpdir + "/buildstats/" + sorted(os.listdir(cls.tmpdir + "/buildstats"))[-1] |