]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/wic: Improve error message for test_fixed_size
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Jul 2018 10:54:20 +0000 (10:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Nov 2018 21:45:47 +0000 (21:45 +0000)
Currently this can fail with a message like 127 != 0 which is unhelpful.

If we remove the ignore_status=False, the debugging from runCmd is much
more helpful printing status.output.

Also remove the now unneeded exit code check.

(From OE-Core rev: 1aa7471b11aedc68de5116c461fe73152e3985fd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/selftest/cases/wic.py

index 8e00e57e219b0576bc803b39ca4be4714a1905e7..baf3af6ebf10ddf4404b58fe6e4d2d1491208e73 100644 (file)
@@ -691,9 +691,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
 
         # verify partition size with wic
         res = runCmd("parted -m %s unit mib p 2>/dev/null" % wicimg,
-                     ignore_status=True,
                      native_sysroot=self.native_sysroot)
-        self.assertEqual(0, res.status)
 
         # parse parted output which looks like this:
         # BYT;\n