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.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 0db6cb80a9..ecb8e53705 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -11,7 +11,6 @@ import os, re, mmap
11import unittest 11import unittest
12import inspect 12import inspect
13 13
14
15def loadTests(tc): 14def loadTests(tc):
16 15
17 # set the context object passed from the test class 16 # set the context object passed from the test class
@@ -36,24 +35,9 @@ def runTests(tc):
36 35
37 return result 36 return result
38 37
39
40class oeTest(unittest.TestCase): 38class oeTest(unittest.TestCase):
41 39
42 longMessage = True 40 longMessage = True
43 testFailures = []
44 testSkipped = []
45 testErrors = []
46
47 def run(self, result=None):
48 super(oeTest, self).run(result)
49
50 # we add to our own lists the results, we use those for decorators
51 if len(result.failures) > len(oeTest.testFailures):
52 oeTest.testFailures.append(str(result.failures[-1][0]).split()[0])
53 if len(result.skipped) > len(oeTest.testSkipped):
54 oeTest.testSkipped.append(str(result.skipped[-1][0]).split()[0])
55 if len(result.errors) > len(oeTest.testErrors):
56 oeTest.testErrors.append(str(result.errors[-1][0]).split()[0])
57 41
58 @classmethod 42 @classmethod
59 def hasPackage(self, pkg): 43 def hasPackage(self, pkg):
@@ -71,7 +55,6 @@ class oeTest(unittest.TestCase):
71 else: 55 else:
72 return False 56 return False
73 57
74
75class oeRuntimeTest(oeTest): 58class oeRuntimeTest(oeTest):
76 59
77 def __init__(self, methodName='runTest'): 60 def __init__(self, methodName='runTest'):