oeqa.buildperf: measure apparent size instead of real disk usage
PATCH 1/1 oeqa.buildperf: measure apparent size instead of real disk usage
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 <[email protected]>
--- meta/lib/oeqa/buildperf/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/buildperf/base.py +1 -1
@@ -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,
Signature · 1 line
2.6.6