summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 4a406e75ca..c9dc5dcd2e 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -103,7 +103,9 @@ def skipModule(reason, pos=2):
103 if modname not in oeRuntimeTest.tc.testsrequired: 103 if modname not in oeRuntimeTest.tc.testsrequired:
104 raise unittest.SkipTest("%s: %s" % (modname, reason)) 104 raise unittest.SkipTest("%s: %s" % (modname, reason))
105 else: 105 else:
106 bb.warn("Test %s is required, not skipping" % modname) 106 raise Exception("\nTest %s wants to be skipped.\nReason is: %s" \
107 "\nTest was required in TEST_SUITES, so either the condition for skipping is wrong" \
108 "\nor the image really doesn't have the requred feature/package when it should." % (modname, reason))
107 109
108def skipModuleIf(cond, reason): 110def skipModuleIf(cond, reason):
109 111