mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
oeqa/sysroot.py: Check bitbake return status
bitbake ran but we incorrectly did not assert the exit status needs to be non 0. Now all sysroot tests commands expected to fail are verified to do so. (From OE-Core rev: 5fe8c14f50d414e768588cef0675d8ef296ced77) Signed-off-by: Paulo Neves <ptsneves@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a5b921b315
commit
2ef273f424
@@ -45,6 +45,7 @@ TESTSTRING:pn-sysroot-test-arch2 = "%s"
|
||||
expected = "maximum shebang size exceeded, the maximum size is 128. [shebang-size]"
|
||||
res = bitbake("sysroot-shebang-test-native -c populate_sysroot", ignore_status=True)
|
||||
self.assertTrue(expected in res.output, msg=res.output)
|
||||
self.assertTrue(res.status != 0)
|
||||
|
||||
def test_sysroot_la(self):
|
||||
"""
|
||||
@@ -57,10 +58,12 @@ TESTSTRING:pn-sysroot-test-arch2 = "%s"
|
||||
res = bitbake("sysroot-la-test -c populate_sysroot", ignore_status=True)
|
||||
self.assertTrue(expected in res.output, msg=res.output)
|
||||
self.assertTrue('[la]' in res.output, msg=res.output)
|
||||
self.assertTrue(res.status != 0)
|
||||
|
||||
res = bitbake("sysroot-la-test-native -c populate_sysroot", ignore_status=True)
|
||||
self.assertTrue(expected in res.output, msg=res.output)
|
||||
self.assertTrue('[la]' in res.output, msg=res.output)
|
||||
self.assertTrue(res.status != 0)
|
||||
|
||||
def test_sysroot_pkgconfig(self):
|
||||
"""
|
||||
@@ -73,7 +76,9 @@ TESTSTRING:pn-sysroot-test-arch2 = "%s"
|
||||
res = bitbake("sysroot-pc-test -c populate_sysroot", ignore_status=True)
|
||||
self.assertTrue('[pkgconfig]' in res.output, msg=res.output)
|
||||
self.assertTrue(expected in res.output, msg=res.output)
|
||||
self.assertTrue(res.status != 0)
|
||||
|
||||
res = bitbake("sysroot-pc-test-native -c populate_sysroot", ignore_status=True)
|
||||
self.assertTrue(expected in res.output, msg=res.output)
|
||||
self.assertTrue('[pkgconfig]' in res.output, msg=res.output)
|
||||
self.assertTrue(res.status != 0)
|
||||
|
||||
Reference in New Issue
Block a user