]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/core/context: Raise exception when a manifest is specified but missing
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Fri, 26 May 2017 20:37:50 +0000 (15:37 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 May 2017 09:15:22 +0000 (10:15 +0100)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/core/context.py
meta/lib/oeqa/core/exception.py

index 28ae017090c839639ccfda69494d24d90d1b7337..1ac28788faa67e7b0d5a2292fdb7c424b0015db7 100644 (file)
@@ -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():
index 2dfd8402cf436462f67bef42e6185db048996a85..97ef19dd777549851c2631ff3cb536683f273d4e 100644 (file)
@@ -12,3 +12,6 @@ class OEQAMissingVariable(OEQAException):
 
 class OEQADependency(OEQAException):
     pass
+
+class OEQAMissingManifest(OEQAException):
+    pass