mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
oeqa/selftest: add test to verify that poisoned sysroots are detected
Add a recipe that explicitly searches /usr/include, and use that in oe-selftest to verify that host include paths are correctly causing build failures. (From OE-Core rev: b3e3eba796b843021b264f0e98dc30f983775d58) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
fdb9e868f7
commit
b0df39edd7
@@ -197,3 +197,9 @@ PREMIRRORS = "\\
|
||||
|
||||
bitbake("world --runall fetch")
|
||||
|
||||
|
||||
class Poisoning(OESelftestTestCase):
|
||||
def test_poisoning(self):
|
||||
res = bitbake("poison", ignore_status=True)
|
||||
self.assertNotEqual(res.status, 0)
|
||||
self.assertTrue("is unsafe for cross-compilation" in res.output)
|
||||
|
||||
Reference in New Issue
Block a user