summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Palalau <alexandrux.palalau@linux.intel.com>2014-04-10 13:59:00 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-10 17:35:16 +0100
commitb1cefd936e4bb12b7379f5996ae1692d9be6dcb6 (patch)
tree593eeb44cabd691cfe95dc562e397f47f7bdfe87
parent3c77416b1b65b4836d5f5b76c01bdd91214fb5a5 (diff)
downloadpoky-b1cefd936e4bb12b7379f5996ae1692d9be6dcb6.tar.gz
selftest: DiskMonTest: use POSIX output for df
Without "-P" df splits the output on multiple lines and breaks the test (From OE-Core rev: 81a81807d34e4b2ea28d8ba9c29e5b48a14bbc1f) Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/buildoptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py
index 93b02cf8a2..8ff40baddc 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -51,7 +51,7 @@ class ImageOptionsTests(oeSelfTest):
51class DiskMonTest(oeSelfTest): 51class DiskMonTest(oeSelfTest):
52 52
53 def test_stoptask_behavior(self): 53 def test_stoptask_behavior(self):
54 result = runCmd("df -k %s" % os.getcwd()) 54 result = runCmd("df -Pk %s" % os.getcwd())
55 size = result.output.split("\n")[1].split()[3] 55 size = result.output.split("\n")[1].split()[3]
56 self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},%sK,4510K"' % size) 56 self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},%sK,4510K"' % size)
57 res = bitbake("m4", ignore_status = True) 57 res = bitbake("m4", ignore_status = True)