[OE-core] [PATCH] oeqa.buildperf: measure apparent size instead of real disk usage
Markus Lehtonen
markus.lehtonen at linux.intel.com
Tue Oct 4 11:56:35 UTC 2016
This change aligns disk usage measurements with the old
build-perf-test.sh script. And thus, also makes the results between the
old and the new script comparable.
Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
meta/lib/oeqa/buildperf/base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 2c10255..9dd377c 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -410,7 +410,7 @@ class BuildPerfTestCase(unittest.TestCase):
def measure_disk_usage(self, path, name, legend):
"""Estimate disk usage of a file or directory"""
- ret = runCmd2(['du', '-s', path])
+ ret = runCmd2(['du', '-s', '--apparent-size', '--block-size', '1024', path])
size = int(ret.output.split()[0])
log.debug("Size of %s path is %s", path, size)
measurement = {'type': self.DISKUSAGE,
--
2.6.6
More information about the Openembedded-core
mailing list