|
@@ -59,15 +59,15 @@ class DiskMonTest(OESelftestTestCase):
|
|
|
@OETestID(277)
|
|
|
def test_stoptask_behavior(self):
|
|
|
self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},100000G,100K"')
|
|
|
- res = bitbake("m4", ignore_status = True)
|
|
|
+ res = bitbake("delay -c delay", ignore_status = True)
|
|
|
self.assertTrue('ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!' in res.output, msg = "Tasks should have stopped. Disk monitor is set to STOPTASK: %s" % res.output)
|
|
|
self.assertEqual(res.status, 1, msg = "bitbake reported exit code %s. It should have been 1. Bitbake output: %s" % (str(res.status), res.output))
|
|
|
self.write_config('BB_DISKMON_DIRS = "ABORT,${TMPDIR},100000G,100K"')
|
|
|
- res = bitbake("m4", ignore_status = True)
|
|
|
+ res = bitbake("delay -c delay", ignore_status = True)
|
|
|
self.assertTrue('ERROR: Immediately abort since the disk space monitor action is "ABORT"!' in res.output, "Tasks should have been aborted immediatelly. Disk monitor is set to ABORT: %s" % res.output)
|
|
|
self.assertEqual(res.status, 1, msg = "bitbake reported exit code %s. It should have been 1. Bitbake output: %s" % (str(res.status), res.output))
|
|
|
self.write_config('BB_DISKMON_DIRS = "WARN,${TMPDIR},100000G,100K"')
|
|
|
- res = bitbake("m4")
|
|
|
+ res = bitbake("delay -c delay")
|
|
|
self.assertTrue('WARNING: The free space' in res.output, msg = "A warning should have been displayed for disk monitor is set to WARN: %s" %res.output)
|
|
|
|
|
|
class SanityOptionsTest(OESelftestTestCase):
|