mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
de06dd1e49
commit
dedb6ba63b
|
@ -10,6 +10,7 @@ import collections
|
||||||
|
|
||||||
from oeqa.core.loader import OETestLoader
|
from oeqa.core.loader import OETestLoader
|
||||||
from oeqa.core.runner import OETestRunner
|
from oeqa.core.runner import OETestRunner
|
||||||
|
from oeqa.core.exception import OEQAMissingManifest
|
||||||
|
|
||||||
class OETestContext(object):
|
class OETestContext(object):
|
||||||
loaderClass = OETestLoader
|
loaderClass = OETestLoader
|
||||||
|
@ -30,7 +31,7 @@ class OETestContext(object):
|
||||||
|
|
||||||
def _read_modules_from_manifest(self, manifest):
|
def _read_modules_from_manifest(self, manifest):
|
||||||
if not os.path.exists(manifest):
|
if not os.path.exists(manifest):
|
||||||
raise
|
raise OEQAMissingManifest("Manifest does not exist on %s" % manifest)
|
||||||
|
|
||||||
modules = []
|
modules = []
|
||||||
for line in open(manifest).readlines():
|
for line in open(manifest).readlines():
|
||||||
|
|
|
@ -12,3 +12,6 @@ class OEQAMissingVariable(OEQAException):
|
||||||
|
|
||||||
class OEQADependency(OEQAException):
|
class OEQADependency(OEQAException):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class OEQAMissingManifest(OEQAException):
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user