diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2014-04-11 14:04:49 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-23 11:43:26 +0100 |
commit | b093750f2df38db2b3169efe780a06f62b5bd2f3 (patch) | |
tree | 0648fce6cc7bd0219c27dbc3af557f364cc83b25 /meta/lib/oeqa | |
parent | 4961972550fabc70dfa4e07925dcb8331a00ef0b (diff) | |
download | poky-b093750f2df38db2b3169efe780a06f62b5bd2f3.tar.gz |
selftest: DiskMonTest: use a high value for free space
Using the free space of the host works when
oe-selftest is the only build running, but if something else
on the host remove things this will fail (as seen on AB).
Using an absurdly high value should fix this.
(From OE-Core rev: 413fc934fadbd3603b7f78dfd3cc0ac83bb0377f)
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/buildoptions.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index 8ff40baddc..27fc452e72 100644 --- a/meta/lib/oeqa/selftest/buildoptions.py +++ b/meta/lib/oeqa/selftest/buildoptions.py | |||
@@ -51,17 +51,15 @@ class ImageOptionsTests(oeSelfTest): | |||
51 | class DiskMonTest(oeSelfTest): | 51 | class DiskMonTest(oeSelfTest): |
52 | 52 | ||
53 | def test_stoptask_behavior(self): | 53 | def test_stoptask_behavior(self): |
54 | result = runCmd("df -Pk %s" % os.getcwd()) | 54 | self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},100000G,100K"') |
55 | size = result.output.split("\n")[1].split()[3] | ||
56 | self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},%sK,4510K"' % size) | ||
57 | res = bitbake("m4", ignore_status = True) | 55 | res = bitbake("m4", ignore_status = True) |
58 | self.assertTrue('ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!' in res.output) | 56 | self.assertTrue('ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!' in res.output) |
59 | self.assertEqual(res.status, 1) | 57 | self.assertEqual(res.status, 1) |
60 | self.write_config('BB_DISKMON_DIRS = "ABORT,${TMPDIR},%sK,4510K"' % size) | 58 | self.write_config('BB_DISKMON_DIRS = "ABORT,${TMPDIR},100000G,100K"') |
61 | res = bitbake("m4", ignore_status = True) | 59 | res = bitbake("m4", ignore_status = True) |
62 | self.assertTrue('ERROR: Immediately abort since the disk space monitor action is "ABORT"!' in res.output) | 60 | self.assertTrue('ERROR: Immediately abort since the disk space monitor action is "ABORT"!' in res.output) |
63 | self.assertEqual(res.status, 1) | 61 | self.assertEqual(res.status, 1) |
64 | self.write_config('BB_DISKMON_DIRS = "WARN,${TMPDIR},%sK,4510K"' % size) | 62 | self.write_config('BB_DISKMON_DIRS = "WARN,${TMPDIR},100000G,100K"') |
65 | res = bitbake("m4") | 63 | res = bitbake("m4") |
66 | self.assertTrue('WARNING: The free space' in res.output) | 64 | self.assertTrue('WARNING: The free space' in res.output) |
67 | 65 | ||