From: Alexandru Palalau Date: Thu, 10 Apr 2014 10:59:00 +0000 (+0300) Subject: selftest: DiskMonTest: use POSIX output for df X-Git-Tag: 2015-4~3084 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=81a81807d34e4b2ea28d8ba9c29e5b48a14bbc1f;p=openembedded-core.git selftest: DiskMonTest: use POSIX output for df Without "-P" df splits the output on multiple lines and breaks the test Signed-off-by: Alexandru Palalau Signed-off-by: Richard Purdie --- 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): 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)