aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/context.py
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-05-30 10:15:22 +0100
commite7458dd24cb7464852fb7f5357d9108d5c052fa6 (patch)
tree5171e661189b29c08553ab8af4a48361048b52dd /meta/lib/oeqa/core/context.py
parent943a2a30e84660b412df4f1d60fb7e2e46764c50 (diff)
downloadopenembedded-core-contrib-e7458dd24cb7464852fb7f5357d9108d5c052fa6.tar.gz
oeqa/core/context: Raise exception when a manifest is specified but missing
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/context.py')
-rw-r--r--meta/lib/oeqa/core/context.py3
1 files changed, 2 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
from oeqa.core.loader import OETestLoader
from oeqa.core.runner import OETestRunner
+from oeqa.core.exception import OEQAMissingManifest
class OETestContext(object):
loaderClass = OETestLoader
@@ -30,7 +31,7 @@ class OETestContext(object):
def _read_modules_from_manifest(self, manifest):
if not os.path.exists(manifest):
- raise
+ raise OEQAMissingManifest("Manifest does not exist on %s" % manifest)
modules = []
for line in open(manifest).readlines():