Patchwork selftest: DiskMonTest: use POSIX output for df

login
register
mail settings
Submitter Alexandru Palalau
Date April 10, 2014, 10:59 a.m.
Message ID <1397127540-9152-1-git-send-email-alexandrux.palalau@linux.intel.com>
Download mbox | patch
Permalink /patch/70441/
State Accepted
Commit b1cefd936e4bb12b7379f5996ae1692d9be6dcb6
Headers show

Comments

Alexandru Palalau - April 10, 2014, 10:59 a.m.
Without "-P" df  splits the output on multiple lines and breaks the test

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
---
 meta/lib/oeqa/selftest/buildoptions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py
index 93b02cf..8ff40ba 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -51,7 +51,7 @@  class ImageOptionsTests(oeSelfTest):
 class DiskMonTest(oeSelfTest):
 
     def test_stoptask_behavior(self):
-        result = runCmd("df -k %s" % os.getcwd())
+        result = runCmd("df -Pk %s" % os.getcwd())
         size = result.output.split("\n")[1].split()[3]
         self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},%sK,4510K"' % size)
         res = bitbake("m4", ignore_status = True)