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 23:02:45 +0100 |
| commit | 1cab88782d134071551deb142668ceccd2328555 (patch) | |
| tree | c836583c76aa79689c0d9b1c48a36d77564b4072 | |
| parent | eed89d027d0b2616116c288bb4956a7a5f6d6324 (diff) | |
| download | poky-1cab88782d134071551deb142668ceccd2328555.tar.gz | |
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>
| -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 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): | |||
| 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 | self.assertTrue(json.loads(result.output).get('format') == itype, |
| 165 | msg="Could not parse '%s'" % result.output) | ||
| 165 | 166 | ||
| 166 | def test_long_chain_conversion(self): | 167 | def test_long_chain_conversion(self): |
| 167 | """ | 168 | """ |
