]> 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>
Wed, 25 Jul 2018 15:48:13 +0000 (16:48 +0100)
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.

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

index ba4d3be7a8625d33a802a902adccc5708e38bd09..6793efb62e95c74721e30f972e2e5ae0d7b390c1 100644 (file)
@@ -695,9 +695,7 @@ class Wic2(WicTestCase):
 
         # 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