[OE-core] [PATCH v2 13/19] lib/oeqa/utils: decorators: return the decorated method
Stefan Stanacar
stefanx.stanacar at intel.com
Fri Aug 23 18:04:23 UTC 2013
From: Mihai Lindner <mihaix.lindner at linux.intel.com>
Decorators should return whatever the decorated methods return.
Signed-off-by: Mihai Lindner <mihaix.lindner at linux.intel.com>
Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
---
meta/lib/oeqa/utils/decorators.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py
index e0ca6fd..33fed5a 100644
--- a/meta/lib/oeqa/utils/decorators.py
+++ b/meta/lib/oeqa/utils/decorators.py
@@ -17,7 +17,7 @@ class skipIfFailure(object):
def wrapped_f(*args):
if self.testcase in (oeRuntimeTest.testFailures or oeRuntimeTest.testErrors):
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
- f(*args)
+ return f(*args)
wrapped_f.__name__ = f.__name__
return wrapped_f
@@ -30,7 +30,7 @@ class skipIfSkipped(object):
def wrapped_f(*args):
if self.testcase in oeRuntimeTest.testSkipped:
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
- f(*args)
+ return f(*args)
wrapped_f.__name__ = f.__name__
return wrapped_f
@@ -45,6 +45,6 @@ class skipUnlessPassed(object):
self.testcase in oeRuntimeTest.testFailures or \
self.testcase in oeRuntimeTest.testErrors:
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
- f(*args)
+ return f(*args)
wrapped_f.__name__ = f.__name__
return wrapped_f
--
1.8.3.1
More information about the Openembedded-core
mailing list