diff options
| -rw-r--r-- | meta/lib/oeqa/sdk/case.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/case.py b/meta/lib/oeqa/sdk/case.py index 1fd3b3b569..03cfde88ff 100644 --- a/meta/lib/oeqa/sdk/case.py +++ b/meta/lib/oeqa/sdk/case.py | |||
| @@ -44,7 +44,10 @@ class OESDKTestCase(OETestCase): | |||
| 44 | if isinstance(self.tc, OESDKExtTestContext): | 44 | if isinstance(self.tc, OESDKExtTestContext): |
| 45 | recipe = (recipe or packages[0]) + "-native" | 45 | recipe = (recipe or packages[0]) + "-native" |
| 46 | print("Trying to install %s..." % recipe) | 46 | print("Trying to install %s..." % recipe) |
| 47 | self._run('devtool sdk-install %s' % recipe) | 47 | try: |
| 48 | self._run('devtool sdk-install %s' % recipe) | ||
| 49 | except subprocess.CalledProcessError: | ||
| 50 | raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages))) | ||
| 48 | else: | 51 | else: |
| 49 | raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages))) | 52 | raise unittest.SkipTest("Test %s needs one of %s" % (self.id(), ", ".join(packages))) |
| 50 | 53 | ||
