diff options
Diffstat (limited to 'meta/lib/oeqa/core/context.py')
-rw-r--r-- | meta/lib/oeqa/core/context.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index 2d543ffa31..422e289992 100644 --- a/meta/lib/oeqa/core/context.py +++ b/meta/lib/oeqa/core/context.py | |||
@@ -10,7 +10,7 @@ import collections | |||
10 | 10 | ||
11 | from oeqa.core.loader import OETestLoader | 11 | from oeqa.core.loader import OETestLoader |
12 | from oeqa.core.runner import OETestRunner | 12 | from oeqa.core.runner import OETestRunner |
13 | from oeqa.core.exception import OEQAMissingManifest | 13 | from oeqa.core.exception import OEQAMissingManifest, OEQATestNotFound |
14 | 14 | ||
15 | class OETestContext(object): | 15 | class OETestContext(object): |
16 | loaderClass = OETestLoader | 16 | loaderClass = OETestLoader |
@@ -139,6 +139,7 @@ class OETestContextExecutor(object): | |||
139 | 139 | ||
140 | if args.run_tests: | 140 | if args.run_tests: |
141 | self.tc_kwargs['load']['modules'] = args.run_tests | 141 | self.tc_kwargs['load']['modules'] = args.run_tests |
142 | self.tc_kwargs['load']['modules_required'] = args.run_tests | ||
142 | else: | 143 | else: |
143 | self.tc_kwargs['load']['modules'] = [] | 144 | self.tc_kwargs['load']['modules'] = [] |
144 | 145 | ||
@@ -151,7 +152,11 @@ class OETestContextExecutor(object): | |||
151 | self._process_args(logger, args) | 152 | self._process_args(logger, args) |
152 | 153 | ||
153 | self.tc = self._context_class(**self.tc_kwargs['init']) | 154 | self.tc = self._context_class(**self.tc_kwargs['init']) |
154 | self.tc.loadTests(self.module_paths, **self.tc_kwargs['load']) | 155 | try: |
156 | self.tc.loadTests(self.module_paths, **self.tc_kwargs['load']) | ||
157 | except OEQATestNotFound as ex: | ||
158 | logger.error(ex) | ||
159 | sys.exit(1) | ||
155 | 160 | ||
156 | if args.list_tests: | 161 | if args.list_tests: |
157 | rc = self.tc.listTests(args.list_tests, **self.tc_kwargs['run']) | 162 | rc = self.tc.listTests(args.list_tests, **self.tc_kwargs['run']) |