mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
oeqa/selftest/imagefeatures: dump the JSON if it can't be parsed
(From OE-Core rev: 4f7c840349f576f3edb68b16f9bcc9d88bc73b36) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
eed89d027d
commit
1cab88782d
@@ -161,7 +161,8 @@ class ImageFeatures(OESelftestTestCase):
|
||||
sysroot = get_bb_var('STAGING_DIR_NATIVE', 'core-image-minimal')
|
||||
result = runCmd('qemu-img info --output json %s' % image_path,
|
||||
native_sysroot=sysroot)
|
||||
self.assertTrue(json.loads(result.output).get('format') == itype)
|
||||
self.assertTrue(json.loads(result.output).get('format') == itype,
|
||||
msg="Could not parse '%s'" % result.output)
|
||||
|
||||
def test_long_chain_conversion(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user