Skip to contentSkip to conversation

oeqa.buildperf: measure apparent size instead of real disk usage

PATCH Superseded Markus Lehtonen 1 participant 1 message Oct 4, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/lib/oeqa/buildperf/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/buildperf/base.py +1 -1
index 2c10255..9dd377c 100644
@@ -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