From 0131e32549589c7268cd0dcd87e67297259a7c91 Mon Sep 17 00:00:00 2001 From: Mihai Lindner Date: Thu, 22 Aug 2013 09:12:15 +0300 Subject: [PATCH] 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 Signed-off-by: Stefan Stanacar Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- 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 -- 2.7.4