summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>2014-08-26 13:05:42 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-27 12:12:31 +0100
commite04172d8bd5bcaf0de9768d8ba044f627b2d02b0 (patch)
treebdb9a962313f44ac44d18309b0c04d07db597516 /meta/classes/testimage.bbclass
parent475e9762727a5c6b7cfe4c6bf248f050fe107533 (diff)
downloadpoky-e04172d8bd5bcaf0de9768d8ba044f627b2d02b0.tar.gz
classes/testimage.bbclass: add more fields to the sdk TestContext
In order to use hasFeature and hasPackage methods in sdk test modules, we need specific fields to be set in the TestContext object. Adding pkgmanifest, imagefeatures and distrofeatures to the TestContext. (From OE-Core rev: cd342b399b2d78724032cdd7042968d3238cd548) Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 97d0380153..f2480fe085 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -281,6 +281,14 @@ def testsdk_main(d):
281 self.filesdir = os.path.join(os.path.dirname(os.path.abspath(oeqa.runtime.__file__)),"files") 281 self.filesdir = os.path.join(os.path.dirname(os.path.abspath(oeqa.runtime.__file__)),"files")
282 self.sdktestdir = sdktestdir 282 self.sdktestdir = sdktestdir
283 self.sdkenv = sdkenv 283 self.sdkenv = sdkenv
284 self.imagefeatures = d.getVar("IMAGE_FEATURES", True).split()
285 self.distrofeatures = d.getVar("DISTRO_FEATURES", True).split()
286 manifest = os.path.join(d.getVar("SDK_MANIFEST", True))
287 try:
288 with open(manifest) as f:
289 self.pkgmanifest = f.read()
290 except IOError as e:
291 bb.fatal("No package manifest file found. Did you build the sdk image?\n%s" % e)
284 292
285 # test context 293 # test context
286 tc = TestContext() 294 tc = TestContext()