diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-05-26 15:37:50 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-02 13:36:14 +0100 |
commit | dedb6ba63bea7bdbd78f68701e273a1a9fcaae61 (patch) | |
tree | 4a9f021e6ae1e20e082ad62c4292160d304bbdfe /meta/lib/oeqa | |
parent | de06dd1e497faa0df03e0099ef39e6d722e1c551 (diff) | |
download | poky-dedb6ba63bea7bdbd78f68701e273a1a9fcaae61.tar.gz |
oeqa/core/context: Raise exception when a manifest is specified but missing
(From OE-Core rev: e7458dd24cb7464852fb7f5357d9108d5c052fa6)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/core/context.py | 3 | ||||
-rw-r--r-- | meta/lib/oeqa/core/exception.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index 28ae017090..1ac28788fa 100644 --- a/meta/lib/oeqa/core/context.py +++ b/meta/lib/oeqa/core/context.py | |||
@@ -10,6 +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 | 14 | ||
14 | class OETestContext(object): | 15 | class OETestContext(object): |
15 | loaderClass = OETestLoader | 16 | loaderClass = OETestLoader |
@@ -30,7 +31,7 @@ class OETestContext(object): | |||
30 | 31 | ||
31 | def _read_modules_from_manifest(self, manifest): | 32 | def _read_modules_from_manifest(self, manifest): |
32 | if not os.path.exists(manifest): | 33 | if not os.path.exists(manifest): |
33 | raise | 34 | raise OEQAMissingManifest("Manifest does not exist on %s" % manifest) |
34 | 35 | ||
35 | modules = [] | 36 | modules = [] |
36 | for line in open(manifest).readlines(): | 37 | for line in open(manifest).readlines(): |
diff --git a/meta/lib/oeqa/core/exception.py b/meta/lib/oeqa/core/exception.py index 2dfd8402cf..97ef19dd77 100644 --- a/meta/lib/oeqa/core/exception.py +++ b/meta/lib/oeqa/core/exception.py | |||
@@ -12,3 +12,6 @@ class OEQAMissingVariable(OEQAException): | |||
12 | 12 | ||
13 | class OEQADependency(OEQAException): | 13 | class OEQADependency(OEQAException): |
14 | pass | 14 | pass |
15 | |||
16 | class OEQAMissingManifest(OEQAException): | ||
17 | pass | ||