diff options
-rw-r--r-- | meta/classes/testimage.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 75ab716270..48e1032326 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -185,8 +185,11 @@ def testimage_main(d): | |||
185 | self.imagefeatures = d.getVar("IMAGE_FEATURES", True).split() | 185 | self.imagefeatures = d.getVar("IMAGE_FEATURES", True).split() |
186 | self.distrofeatures = d.getVar("DISTRO_FEATURES", True).split() | 186 | self.distrofeatures = d.getVar("DISTRO_FEATURES", True).split() |
187 | manifest = os.path.join(d.getVar("DEPLOY_DIR_IMAGE", True), d.getVar("IMAGE_LINK_NAME", True) + ".manifest") | 187 | manifest = os.path.join(d.getVar("DEPLOY_DIR_IMAGE", True), d.getVar("IMAGE_LINK_NAME", True) + ".manifest") |
188 | with open(manifest) as f: | 188 | try: |
189 | self.pkgmanifest = f.read() | 189 | with open(manifest) as f: |
190 | self.pkgmanifest = f.read() | ||
191 | except IOError as e: | ||
192 | bb.fatal("No package manifest file found. Did you build the image?\n%s" % e) | ||
190 | 193 | ||
191 | # test context | 194 | # test context |
192 | tc = TestContext() | 195 | tc = TestContext() |