On 17/12/15 16:21, Burton, Ross wrote:
On 17 December 2015 at 16:09, Joshua Lock mailto:joshua.l...@collabora.co.uk>> wrote:
+used = int(runCmd("du %s | awk '{print $1}'" % path).output)
+apparent = int(runCmd("du --apparent-size %s | awk '{print
$1}'" % path).output
On 17 December 2015 at 16:09, Joshua Lock
wrote:
> +used = int(runCmd("du %s | awk '{print $1}'" % path).output)
> +apparent = int(runCmd("du --apparent-size %s | awk '{print $1}'"
> % path).output)
>
Surely os.stat() can do this instead?
Ross
--
___
Add a testcase to build a directdisk image and check that the
used disk size is less than the apparent size, as wic now
assembles images as sparse files.
Signed-off-by: Joshua Lock
---
meta/lib/oeqa/selftest/wic.py | 12
1 file changed, 12 insertions(+)
diff --git a/meta/lib/oeqa/s