lib/oeqa/utils: decorators: return the decorated method
Decorators should return whatever the decorated methods return. (From OE-Core rev: c92513d6ff3f8f06d937a5cdf4d94708f27c3850) Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com> 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>
This commit is contained in:
parent
a9dab56e5d
commit
2c83398940
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue