Without "-P" df splits the output on multiple lines and breaks the test
Signed-off-by: Alexandru Palalau <[email protected]> --- meta/lib/oeqa/selftest/buildoptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.8.3.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
