diff options
author | Mihai Lindner <mihaix.lindner@linux.intel.com> | 2013-08-22 09:12:15 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-26 11:42:14 +0100 |
commit | c92513d6ff3f8f06d937a5cdf4d94708f27c3850 (patch) | |
tree | 7f0972fcfa552745edf1fbaa1c7925ba5b87da6e /meta/lib | |
parent | 1fcf10db10fa36430e37c95c9fee27197e73f7a5 (diff) | |
download | openembedded-core-c92513d6ff3f8f06d937a5cdf4d94708f27c3850.tar.gz openembedded-core-c92513d6ff3f8f06d937a5cdf4d94708f27c3850.tar.bz2 openembedded-core-c92513d6ff3f8f06d937a5cdf4d94708f27c3850.zip |
lib/oeqa/utils: decorators: return the decorated method
Decorators should return whatever the decorated methods return.
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>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/utils/decorators.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py index e0ca6fd19e..33fed5a10b 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 |