summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/smart.py1
-rw-r--r--meta/lib/oeqa/utils/decorators.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py
index 8cfacd4602..0b03a30a3f 100644
--- a/meta/lib/oeqa/runtime/smart.py
+++ b/meta/lib/oeqa/runtime/smart.py
@@ -10,6 +10,7 @@ def setUpModule():
10 10
11class SmartHelpTest(oeRuntimeTest): 11class SmartHelpTest(oeRuntimeTest):
12 12
13 @skipUnlessPassed('test_ssh')
13 def test_smart_help(self): 14 def test_smart_help(self):
14 status = self.target.run('smart --help')[0] 15 status = self.target.run('smart --help')[0]
15 self.assertEqual(status, 0) 16 self.assertEqual(status, 0)
diff --git a/meta/lib/oeqa/utils/decorators.py b/meta/lib/oeqa/utils/decorators.py
index adec65eb44..e0ca6fd19e 100644
--- a/meta/lib/oeqa/utils/decorators.py
+++ b/meta/lib/oeqa/utils/decorators.py
@@ -41,7 +41,9 @@ class skipUnlessPassed(object):
41 41
42 def __call__(self,f): 42 def __call__(self,f):
43 def wrapped_f(*args): 43 def wrapped_f(*args):
44 if self.testcase in (oeRuntimeTest.testSkipped, oeRuntimeTest.testFailures, oeRuntimeTest.testErrors): 44 if self.testcase in oeRuntimeTest.testSkipped or \
45 self.testcase in oeRuntimeTest.testFailures or \
46 self.testcase in oeRuntimeTest.testErrors:
45 raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase) 47 raise unittest.SkipTest("Testcase dependency not met: %s" % self.testcase)
46 f(*args) 48 f(*args)
47 wrapped_f.__name__ = f.__name__ 49 wrapped_f.__name__ = f.__name__