mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
oeqa/selftest: use specialist assert* methods
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6f4102f4f6
commit
9b607c58ff
@@ -124,7 +124,7 @@ class ImageFeatures(OESelftestTestCase):
|
||||
|
||||
# check if result image is sparse
|
||||
image_stat = os.stat(image_path)
|
||||
self.assertTrue(image_stat.st_size > image_stat.st_blocks * 512)
|
||||
self.assertGreater(image_stat.st_size, image_stat.st_blocks * 512)
|
||||
|
||||
# check if the resulting gzip is valid
|
||||
self.assertTrue(runCmd('gzip -t %s' % gzip_path))
|
||||
|
||||
Reference in New Issue
Block a user