]> code.ossystems Code Review - openembedded-core.git/commitdiff
testimage: Fix sdk test manifest handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Apr 2015 10:49:08 +0000 (11:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 Apr 2015 09:39:39 +0000 (10:39 +0100)
Fix SDK_MANIFEST -> SDK_TARGET_MANIFEST and add support for host
version too which is useful in SDK QA tests.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage.bbclass

index dc163c731383b42b926e4463676b084b9161f151..1557675eec8556f9ac363aa0661633dfc41b12d1 100644 (file)
@@ -287,12 +287,18 @@ def testsdk_main(d):
             self.sdkenv = sdkenv
             self.imagefeatures = d.getVar("IMAGE_FEATURES", True).split()
             self.distrofeatures = d.getVar("DISTRO_FEATURES", True).split()
-            manifest = os.path.join(d.getVar("SDK_MANIFEST", True))
+            manifest = d.getVar("SDK_TARGET_MANIFEST", True)
             try:
                 with open(manifest) as f:
                     self.pkgmanifest = f.read()
             except IOError as e:
                 bb.fatal("No package manifest file found. Did you build the sdk image?\n%s" % e)
+            hostmanifest = d.getVar("SDK_HOST_MANIFEST", True)
+            try:
+                with open(hostmanifest) as f:
+                    self.hostpkgmanifest = f.read()
+            except IOError as e:
+                bb.fatal("No host package manifest file found. Did you build the sdk image?\n%s" % e)
 
     # test context
     tc = TestContext()