From: Leonardo Sandoval Date: Fri, 26 May 2017 20:37:50 +0000 (-0500) Subject: oeqa/core/context: Raise exception when a manifest is specified but missing X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7458dd24cb7464852fb7f5357d9108d5c052fa6;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa/core/context: Raise exception when a manifest is specified but missing Signed-off-by: Leonardo Sandoval Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index 28ae017090c..1ac28788faa 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(): diff --git a/meta/lib/oeqa/core/exception.py b/meta/lib/oeqa/core/exception.py index 2dfd8402cf4..97ef19dd777 100644 --- a/meta/lib/oeqa/core/exception.py +++ b/meta/lib/oeqa/core/exception.py @@ -12,3 +12,6 @@ class OEQAMissingVariable(OEQAException): class OEQADependency(OEQAException): pass + +class OEQAMissingManifest(OEQAException): + pass