summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 620617c4fb..80b40b6fa9 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -382,14 +382,18 @@ class SDKTestContext(TestContext):
382 self.sdktestdir = sdktestdir 382 self.sdktestdir = sdktestdir
383 self.sdkenv = sdkenv 383 self.sdkenv = sdkenv
384 384
385 if not hasattr(self, 'target_manifest'):
386 self.target_manifest = d.getVar("SDK_TARGET_MANIFEST", True)
385 try: 387 try:
386 with open(d.getVar("SDK_TARGET_MANIFEST", True)) as f: 388 with open(self.target_manifest) as f:
387 self.pkgmanifest = f.read() 389 self.pkgmanifest = f.read()
388 except IOError as e: 390 except IOError as e:
389 bb.fatal("No package manifest file found. Did you build the sdk image?\n%s" % e) 391 bb.fatal("No package manifest file found. Did you build the sdk image?\n%s" % e)
390 392
393 if not hasattr(self, 'host_manifest'):
394 self.host_manifest = d.getVar("SDK_HOST_MANIFEST", True)
391 try: 395 try:
392 with open(d.getVar("SDK_HOST_MANIFEST", True)) as f: 396 with open(self.host_manifest) as f:
393 self.hostpkgmanifest = f.read() 397 self.hostpkgmanifest = f.read()
394 except IOError as e: 398 except IOError as e:
395 bb.fatal("No host package manifest file found. Did you build the sdk image?\n%s" % e) 399 bb.fatal("No host package manifest file found. Did you build the sdk image?\n%s" % e)
@@ -406,6 +410,9 @@ class SDKTestContext(TestContext):
406 410
407class SDKExtTestContext(SDKTestContext): 411class SDKExtTestContext(SDKTestContext):
408 def __init__(self, d, sdktestdir, sdkenv): 412 def __init__(self, d, sdktestdir, sdkenv):
413 self.target_manifest = d.getVar("SDK_EXT_TARGET_MANIFEST", True)
414 self.host_manifest = d.getVar("SDK_EXT_HOST_MANIFEST", True)
415
409 super(SDKExtTestContext, self).__init__(d, sdktestdir, sdkenv) 416 super(SDKExtTestContext, self).__init__(d, sdktestdir, sdkenv)
410 417
411 self.sdkextfilesdir = os.path.join(os.path.dirname(os.path.abspath( 418 self.sdkextfilesdir = os.path.join(os.path.dirname(os.path.abspath(