aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/decorators.py
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-11-01 12:37:56 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-05 22:04:28 +0000
commit19aeca1cac9bed7851dd7ee45156d6024ab54498 (patch)
tree3e32fa3b4ca93ccab0da1d8f912256163c3c698d /meta/lib/oeqa/utils/decorators.py
parent90c709da9b3e8d3167a0ecb6ef91f569a70fe285 (diff)
downloadopenembedded-core-contrib-19aeca1cac9bed7851dd7ee45156d6024ab54498.tar.gz
lib/oeqa: add oeTest superclass
Add oeTest superclass, make oeRuntimeTest inherit that and make the necesarry adjustments. Tests in lib/oeqa/runtime don't change, they still inherit oeRuntimeTest. We should do this because oetest.py in the future can be a base module for more stuff than oeRuntimeTest. (From OE-Core rev: cd4ed41a070bd52c446ac3df8337f17ab9421145) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/decorators.py')
-rw-r--r--meta/lib/oeqa/utils/decorators.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py
index 33fed5a10b..b99da8d76d 100644
--- a/meta/lib/oeqa/utils/decorators.py
+++ b/meta/lib/oeqa/utils/decorators.py
@@ -15,7 +15,7 @@ class skipIfFailure(object):
def __call__(self,f):
def wrapped_f(*args):
- if self.testcase in (oeRuntimeTest.testFailures or oeRuntimeTest.testErrors):
+ if self.testcase in (oeTest.testFailures or oeTest.testErrors):
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
return f(*args)
wrapped_f.__name__ = f.__name__
@@ -28,7 +28,7 @@ class skipIfSkipped(object):
def __call__(self,f):
def wrapped_f(*args):
- if self.testcase in oeRuntimeTest.testSkipped:
+ if self.testcase in oeTest.testSkipped:
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
return f(*args)
wrapped_f.__name__ = f.__name__
@@ -41,9 +41,9 @@ class skipUnlessPassed(object):
def __call__(self,f):
def wrapped_f(*args):
- if self.testcase in oeRuntimeTest.testSkipped or \
- self.testcase in oeRuntimeTest.testFailures or \
- self.testcase in oeRuntimeTest.testErrors:
+ if self.testcase in oeTest.testSkipped or \
+ self.testcase in oeTest.testFailures or \
+ self.testcase in oeTest.testErrors:
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
return f(*args)
wrapped_f.__name__ = f.__name__