diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/buildoptions.py')
-rw-r--r-- | meta/lib/oeqa/selftest/buildoptions.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py index f99dda71ff..5fb69d8170 100644 --- a/meta/lib/oeqa/selftest/buildoptions.py +++ b/meta/lib/oeqa/selftest/buildoptions.py | |||
@@ -46,16 +46,16 @@ class DiskMonTest(oeSelfTest): | |||
46 | def test_stoptask_behavior(self): | 46 | def test_stoptask_behavior(self): |
47 | result = runCmd("df -k %s" % os.getcwd()) | 47 | result = runCmd("df -k %s" % os.getcwd()) |
48 | size = result.output.split("\n")[1].split()[3] | 48 | size = result.output.split("\n")[1].split()[3] |
49 | self.append_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},%sK,4510K"' % size) | 49 | self.write_config('BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},%sK,4510K"' % size) |
50 | res = bitbake("core-image-minimal", ignore_status = True) | 50 | res = bitbake("m4", ignore_status = True) |
51 | self.assertTrue('ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!' in res.output) | 51 | self.assertTrue('ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!' in res.output) |
52 | self.assertEqual(res.status, 1) | 52 | self.assertEqual(res.status, 1) |
53 | self.append_config('BB_DISKMON_DIRS = "ABORT,${TMPDIR},%sK,4510K"' % size) | 53 | self.write_config('BB_DISKMON_DIRS = "ABORT,${TMPDIR},%sK,4510K"' % size) |
54 | res = bitbake("core-image-minimal", ignore_status = True) | 54 | res = bitbake("m4", ignore_status = True) |
55 | self.assertTrue('ERROR: Immediately abort since the disk space monitor action is "ABORT"!' in res.output) | 55 | self.assertTrue('ERROR: Immediately abort since the disk space monitor action is "ABORT"!' in res.output) |
56 | self.assertEqual(res.status, 1) | 56 | self.assertEqual(res.status, 1) |
57 | self.append_config('BB_DISKMON_DIRS = "WARN,${TMPDIR},%sK,4510K"' % size) | 57 | self.write_config('BB_DISKMON_DIRS = "WARN,${TMPDIR},%sK,4510K"' % size) |
58 | res = bitbake("core-image-minimal") | 58 | res = bitbake("m4") |
59 | self.assertTrue('WARNING: The free space' in res.output) | 59 | self.assertTrue('WARNING: The free space' in res.output) |
60 | 60 | ||
61 | class SanityOptionsTest(oeSelfTest): | 61 | class SanityOptionsTest(oeSelfTest): |
@@ -74,9 +74,10 @@ class SanityOptionsTest(oeSelfTest): | |||
74 | self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"') | 74 | self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"') |
75 | self.append_config('ERROR_QA_remove = "packages-list"') | 75 | self.append_config('ERROR_QA_remove = "packages-list"') |
76 | self.append_config('WARN_QA_append = " packages-list"') | 76 | self.append_config('WARN_QA_append = " packages-list"') |
77 | bitbake("xcursor-transparent-theme") | 77 | res = bitbake("xcursor-transparent-theme") |
78 | bitbake("xcursor-transparent-theme -ccleansstate") | 78 | bitbake("xcursor-transparent-theme -ccleansstate") |
79 | self.delete_recipeinc('xcursor-transparent-theme') | 79 | self.delete_recipeinc('xcursor-transparent-theme') |
80 | self.assertTrue("WARNING: QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors." in res.output) | ||
80 | 81 | ||
81 | def test_sanity_userspace_dependency(self): | 82 | def test_sanity_userspace_dependency(self): |
82 | self.append_config('WARN_QA_append = " unsafe-references-in-binaries unsafe-references-in-scripts"') | 83 | self.append_config('WARN_QA_append = " unsafe-references-in-binaries unsafe-references-in-scripts"') |