diff options
author | Ross Burton <ross.burton@intel.com> | 2019-09-13 16:59:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-16 11:45:28 +0100 |
commit | 4f7c840349f576f3edb68b16f9bcc9d88bc73b36 (patch) | |
tree | d560242b2e58d93000b437ae49b9c083aef8634c /meta | |
parent | ff4e6c71ac415de93b3abaa4e7f1727d72cd2971 (diff) | |
download | openembedded-core-contrib-4f7c840349f576f3edb68b16f9bcc9d88bc73b36.tar.gz |
oeqa/selftest/imagefeatures: dump the JSON if it can't be parsed
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/imagefeatures.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index afc629f29cd..8213d63e375 100644 --- a/meta/lib/oeqa/selftest/cases/imagefeatures.py +++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py @@ -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): """ |