All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] oeqa.buildperf: measure apparent size instead of real disk usage
@ 2016-10-04 11:56 Markus Lehtonen
  0 siblings, 0 replies; only message in thread
From: Markus Lehtonen @ 2016-10-04 11:56 UTC (permalink / raw)
  To: openembedded-core

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@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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-04 11:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 11:56 [PATCH] oeqa.buildperf: measure apparent size instead of real disk usage Markus Lehtonen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.