mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
selftest/wic: Improve error message for test_fixed_size
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) (From OE-Core rev: d9ad083ee5a1bc8723b01b31a0010128e26375fd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -691,9 +691,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r
|
|||||||
|
|
||||||
# verify partition size with wic
|
# verify partition size with wic
|
||||||
res = runCmd("parted -m %s unit mib p 2>/dev/null" % wicimg,
|
res = runCmd("parted -m %s unit mib p 2>/dev/null" % wicimg,
|
||||||
ignore_status=True,
|
|
||||||
native_sysroot=self.native_sysroot)
|
native_sysroot=self.native_sysroot)
|
||||||
self.assertEqual(0, res.status)
|
|
||||||
|
|
||||||
# parse parted output which looks like this:
|
# parse parted output which looks like this:
|
||||||
# BYT;\n
|
# BYT;\n
|
||||||
|
|||||||
Reference in New Issue
Block a user