diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2013-11-01 12:37:56 +0200 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-11-04 10:01:17 -0800 |
commit | cd4ed41a070bd52c446ac3df8337f17ab9421145 (patch) | |
tree | 657a3b58b98f2fcff126124618acdb7d9564539d /meta/lib/oeqa/utils/decorators.py | |
parent | 1132c4210eddd59b22b2640935ab0bb8f48c0124 (diff) | |
download | openembedded-core-contrib-cd4ed41a070bd52c446ac3df8337f17ab9421145.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.
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib/oeqa/utils/decorators.py')
-rw-r--r-- | meta/lib/oeqa/utils/decorators.py | 10 |
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__ |