diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-23 10:54:20 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-24 21:45:58 +0000 |
commit | 0b96af3645fe2f7587499ee28df37628775c5ec2 (patch) | |
tree | 0d803d5e6c224a3ba7f2e666238a9e0f5267ff72 | |
parent | 200366f34a50e3605dfcac67b918290a43bc2a18 (diff) | |
download | poky-0b96af3645fe2f7587499ee28df37628775c5ec2.tar.gz |
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>
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 8e00e57e21..baf3af6ebf 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
@@ -691,9 +691,7 @@ part /etc --source rootfs --ondisk mmcblk0 --fstype=ext4 --exclude-path bin/ --r | |||
691 | 691 | ||
692 | # verify partition size with wic | 692 | # verify partition size with wic |
693 | res = runCmd("parted -m %s unit mib p 2>/dev/null" % wicimg, | 693 | res = runCmd("parted -m %s unit mib p 2>/dev/null" % wicimg, |
694 | ignore_status=True, | ||
695 | native_sysroot=self.native_sysroot) | 694 | native_sysroot=self.native_sysroot) |
696 | self.assertEqual(0, res.status) | ||
697 | 695 | ||
698 | # parse parted output which looks like this: | 696 | # parse parted output which looks like this: |
699 | # BYT;\n | 697 | # BYT;\n |