summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-09-13 16:59:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-16 11:45:28 +0100
commit4f7c840349f576f3edb68b16f9bcc9d88bc73b36 (patch)
treed560242b2e58d93000b437ae49b9c083aef8634c /meta
parentff4e6c71ac415de93b3abaa4e7f1727d72cd2971 (diff)
downloadopenembedded-core-4f7c840349f576f3edb68b16f9bcc9d88bc73b36.tar.gz
openembedded-core-4f7c840349f576f3edb68b16f9bcc9d88bc73b36.tar.bz2
openembedded-core-4f7c840349f576f3edb68b16f9bcc9d88bc73b36.zip
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.py3
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 afc629f29c..8213d63e37 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):
"""