summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/oescripts.py3
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
5import os 5import os
6import unittest
6from oeqa.selftest.case import OESelftestTestCase 7from oeqa.selftest.case import OESelftestTestCase
7from oeqa.selftest.cases.buildhistory import BuildhistoryBase 8from oeqa.selftest.cases.buildhistory import BuildhistoryBase
8from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer 9from 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]