summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2017-05-26 15:37:50 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-02 13:36:14 +0100
commitdedb6ba63bea7bdbd78f68701e273a1a9fcaae61 (patch)
tree4a9f021e6ae1e20e082ad62c4292160d304bbdfe /meta/lib/oeqa/core
parentde06dd1e497faa0df03e0099ef39e6d722e1c551 (diff)
downloadpoky-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/core')
-rw-r--r--meta/lib/oeqa/core/context.py3
-rw-r--r--meta/lib/oeqa/core/exception.py3
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
11from oeqa.core.loader import OETestLoader 11from oeqa.core.loader import OETestLoader
12from oeqa.core.runner import OETestRunner 12from oeqa.core.runner import OETestRunner
13from oeqa.core.exception import OEQAMissingManifest
13 14
14class OETestContext(object): 15class 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
13class OEQADependency(OEQAException): 13class OEQADependency(OEQAException):
14 pass 14 pass
15
16class OEQAMissingManifest(OEQAException):
17 pass