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>
This commit is contained in:
parent
3c77416b1b
commit
b1cefd936e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue