summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa/selftest
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-04-12 15:51:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-13 10:12:43 +0100
commitd7d06cd7390fa02f866ba5414efc3924ceecfb4e (patch)
treec9e1e1eade7a343b87d028a3015f931b9c090e50 /meta/lib/oeqa/selftest
parent63d15764cc2014dba9fee2186f0c8b97c2ac5682 (diff)
downloadopenembedded-core-d7d06cd7390fa02f866ba5414efc3924ceecfb4e.tar.gz
openembedded-core-d7d06cd7390fa02f866ba5414efc3924ceecfb4e.tar.bz2
openembedded-core-d7d06cd7390fa02f866ba5414efc3924ceecfb4e.zip
Revert "oeqa/selftest/wic: add test case for sparse images"
This reverts commit 43150ab7ec63d804e8a998ecee9d00295b8b2bc7. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r--meta/lib/oeqa/selftest/wic.py13
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):
status, output = qemu.run_serial(command)
self.assertEqual(1, status, 'Failed to run command "%s": %s' % (command, output))
self.assertEqual(output, '/dev/root /\r\n/dev/vda3 /mnt')
-
- def test_sparseness(self):
- """Test that assembled images are sparse; apparent size > disk usage"""
- self.assertEqual(0, runCmd("wic create directdisk "
- "--image-name core-image-minimal").status)
- images = glob(self.resultdir + "directdisk-*.direct")
- self.assertEqual(1, len(images))
-
- imagestat = os.stat(images.pop())
- # st_blocks is the "number of 512-byte blocks allocated for file"
- used = imagestat.st_blocks*512
- apparent = imagestat.st_size
- self.assertLess(used, apparent)