diff options
author | Ross Burton <ross.burton@intel.com> | 2016-04-12 15:51:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-13 10:12:52 +0100 |
commit | e80800e005c14c98607a2cd3ff375ca13af71bb5 (patch) | |
tree | 03dc12672add8aee0c682764ae245388d9b909d9 /meta/lib/oeqa | |
parent | 45c0763fc9c8dc247619c8a65378030a58c80874 (diff) | |
download | poky-e80800e005c14c98607a2cd3ff375ca13af71bb5.tar.gz |
Revert "oeqa/selftest/wic: add test case for sparse images"
This reverts commit 43150ab7ec63d804e8a998ecee9d00295b8b2bc7.
(From OE-Core rev: d7d06cd7390fa02f866ba5414efc3924ceecfb4e)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index dd3207528e..a569fbf747 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
@@ -276,16 +276,3 @@ class Wic(oeSelfTest): | |||
276 | status, output = qemu.run_serial(command) | 276 | status, output = qemu.run_serial(command) |
277 | self.assertEqual(1, status, 'Failed to run command "%s": %s' % (command, output)) | 277 | self.assertEqual(1, status, 'Failed to run command "%s": %s' % (command, output)) |
278 | self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt') | 278 | self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt') |
279 | |||
280 | def test_sparseness(self): | ||
281 | """Test that assembled images are sparse; apparent size > disk usage""" | ||
282 | self.assertEqual(0, runCmd("wic create directdisk " | ||
283 | "--image-name core-image-minimal").status) | ||
284 | images = glob(self.resultdir + "directdisk-*.direct") | ||
285 | self.assertEqual(1, len(images)) | ||
286 | |||
287 | imagestat = os.stat(images.pop()) | ||
288 | # st_blocks is the "number of 512-byte blocks allocated for file" | ||
289 | used = imagestat.st_blocks*512 | ||
290 | apparent = imagestat.st_size | ||
291 | self.assertLess(used, apparent) | ||