mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 18:32:13 +02:00
lib/oeqa: fix dependecy check
Adds missing skip for smart test and fix the check (which I somehow broke a while ago). (From OE-Core rev: cf1790d992f067be8d5f9894458f55f6f1bdc61f) 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:
committed by
Richard Purdie
parent
656a8b97c1
commit
3dee534f1e
@@ -10,6 +10,7 @@ def setUpModule():
|
||||
|
||||
class SmartHelpTest(oeRuntimeTest):
|
||||
|
||||
@skipUnlessPassed('test_ssh')
|
||||
def test_smart_help(self):
|
||||
status = self.target.run('smart --help')[0]
|
||||
self.assertEqual(status, 0)
|
||||
|
||||
@@ -41,7 +41,9 @@ class skipUnlessPassed(object):
|
||||
|
||||
def __call__(self,f):
|
||||
def wrapped_f(*args):
|
||||
if self.testcase in (oeRuntimeTest.testSkipped, oeRuntimeTest.testFailures, oeRuntimeTest.testErrors):
|
||||
if self.testcase in oeRuntimeTest.testSkipped or \
|
||||
self.testcase in oeRuntimeTest.testFailures or \
|
||||
self.testcase in oeRuntimeTest.testErrors:
|
||||
raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
|
||||
f(*args)
|
||||
wrapped_f.__name__ = f.__name__
|
||||
|
||||
Reference in New Issue
Block a user