diff options
author | Ross Burton <ross.burton@intel.com> | 2019-10-09 12:16:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-23 16:30:36 +0100 |
commit | 9b607c58ffa3c8d19e55b5ff8c52e8a6a2f6ae32 (patch) | |
tree | 6a7272f8eb5400db50df8175b128aaccc3619329 /meta/lib/oeqa/selftest/cases/imagefeatures.py | |
parent | 6f4102f4f63cbd14d9d3df8157020c80fae2cdcc (diff) | |
download | poky-9b607c58ffa3c8d19e55b5ff8c52e8a6a2f6ae32.tar.gz |
oeqa/selftest: use specialist assert* methods
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/imagefeatures.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/imagefeatures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index cf2a42aab5..ef2eefa860 100644 --- a/meta/lib/oeqa/selftest/cases/imagefeatures.py +++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py | |||
@@ -124,7 +124,7 @@ class ImageFeatures(OESelftestTestCase): | |||
124 | 124 | ||
125 | # check if result image is sparse | 125 | # check if result image is sparse |
126 | image_stat = os.stat(image_path) | 126 | image_stat = os.stat(image_path) |
127 | self.assertTrue(image_stat.st_size > image_stat.st_blocks * 512) | 127 | self.assertGreater(image_stat.st_size, image_stat.st_blocks * 512) |
128 | 128 | ||
129 | # check if the resulting gzip is valid | 129 | # check if the resulting gzip is valid |
130 | self.assertTrue(runCmd('gzip -t %s' % gzip_path)) | 130 | self.assertTrue(runCmd('gzip -t %s' % gzip_path)) |