summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/cases/imagefeatures.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py
index 8213d63e37..cf2a42aab5 100644
--- a/meta/lib/oeqa/selftest/cases/imagefeatures.py
+++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py
@@ -161,8 +161,12 @@ class ImageFeatures(OESelftestTestCase):
161 sysroot = get_bb_var('STAGING_DIR_NATIVE', 'core-image-minimal') 161 sysroot = get_bb_var('STAGING_DIR_NATIVE', 'core-image-minimal')
162 result = runCmd('qemu-img info --output json %s' % image_path, 162 result = runCmd('qemu-img info --output json %s' % image_path,
163 native_sysroot=sysroot) 163 native_sysroot=sysroot)
164 self.assertTrue(json.loads(result.output).get('format') == itype, 164 try:
165 msg="Could not parse '%s'" % result.output) 165 data = json.loads(result.output)
166 self.assertEqual(data.get('format'), itype,
167 msg="Unexpected format in '%s'" % (result.output))
168 except json.decoder.JSONDecodeError:
169 self.fail("Could not parse '%ss'" % result.output)
166 170
167 def test_long_chain_conversion(self): 171 def test_long_chain_conversion(self):
168 """ 172 """