mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 12:49:34 +02:00
selftest/buildoptions.py: fix QA_WARN test and add more output when failing
The -ccleansstate should be done before building the package for the second time. Also printing the command output when failing. (From OE-Core rev: 15e5661d6341004ebc4d3492acb48f73dd86b96e) Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
062bd810fc
commit
d738109415
@@ -74,15 +74,15 @@ class SanityOptionsTest(oeSelfTest):
|
|||||||
self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
|
self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
|
||||||
res = bitbake("xcursor-transparent-theme", ignore_status=True)
|
res = bitbake("xcursor-transparent-theme", ignore_status=True)
|
||||||
self.delete_recipeinc('xcursor-transparent-theme')
|
self.delete_recipeinc('xcursor-transparent-theme')
|
||||||
self.assertTrue("ERROR: QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors." in res.output)
|
self.assertTrue("ERROR: QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors." in res.output, msg=res.output)
|
||||||
self.assertEqual(res.status, 1)
|
self.assertEqual(res.status, 1)
|
||||||
self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
|
self.write_recipeinc('xcursor-transparent-theme', 'PACKAGES += \"${PN}-dbg\"')
|
||||||
self.append_config('ERROR_QA_remove = "packages-list"')
|
self.append_config('ERROR_QA_remove = "packages-list"')
|
||||||
self.append_config('WARN_QA_append = " packages-list"')
|
self.append_config('WARN_QA_append = " packages-list"')
|
||||||
res = bitbake("xcursor-transparent-theme")
|
|
||||||
bitbake("xcursor-transparent-theme -ccleansstate")
|
bitbake("xcursor-transparent-theme -ccleansstate")
|
||||||
|
res = bitbake("xcursor-transparent-theme")
|
||||||
self.delete_recipeinc('xcursor-transparent-theme')
|
self.delete_recipeinc('xcursor-transparent-theme')
|
||||||
self.assertTrue("WARNING: QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors." in res.output)
|
self.assertTrue("WARNING: QA Issue: xcursor-transparent-theme-dbg is listed in PACKAGES multiple times, this leads to packaging errors." in res.output, msg=res.output)
|
||||||
|
|
||||||
def test_sanity_userspace_dependency(self):
|
def test_sanity_userspace_dependency(self):
|
||||||
self.append_config('WARN_QA_append = " unsafe-references-in-binaries unsafe-references-in-scripts"')
|
self.append_config('WARN_QA_append = " unsafe-references-in-binaries unsafe-references-in-scripts"')
|
||||||
|
|||||||
Reference in New Issue
Block a user