bitbake ran but we incorrectly did not check the exit status needs to be non 0. Now all sysroot tests commands expected to fail are verified to do so.
Signed-off-by: Paulo Neves <[email protected]> --- meta/lib/oeqa/selftest/cases/sysroot.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/sysroot.py b/meta/lib/oeqa/selftest/cases/sysroot.py index 588fc8c713..6371a10074 100644 --- a/meta/lib/oeqa/selftest/cases/sysroot.py +++ b/meta/lib/oeqa/selftest/cases/sysroot.py @@ -43,7 +43,7 @@ TESTSTRING:pn-sysroot-test-arch2 = "%s" Author: Paulo Neves <[email protected]> """ expected = "maximum shebang size exceeded, the maximum size is 128. [shebang-size]" - res = bitbake("sysroot-shebang-test-native -c populate_sysroot", ignore_status=True) + res = bitbake("sysroot-shebang-test-native -c populate_sysroot") self.assertTrue(expected in res.output, msg=res.output) def test_sysroot_la(self): @@ -54,11 +54,11 @@ TESTSTRING:pn-sysroot-test-arch2 = "%s" """ expected = "la-test.la failed sanity test (workdir) in path" - res = bitbake("sysroot-la-test -c populate_sysroot", ignore_status=True) + res = bitbake("sysroot-la-test -c populate_sysroot") self.assertTrue(expected in res.output, msg=res.output) self.assertTrue('[la]' in res.output, msg=res.output) - res = bitbake("sysroot-la-test-native -c populate_sysroot", ignore_status=True) + res = bitbake("sysroot-la-test-native -c populate_sysroot") self.assertTrue(expected in res.output, msg=res.output) self.assertTrue('[la]' in res.output, msg=res.output) @@ -70,10 +70,11 @@ TESTSTRING:pn-sysroot-test-arch2 = "%s" """ expected = "test.pc failed sanity test (tmpdir) in path" - res = bitbake("sysroot-pc-test -c populate_sysroot", ignore_status=True) + res = bitbake("sysroot-pc-test -c populate_sysroot") self.assertTrue('[pkgconfig]' in res.output, msg=res.output) self.assertTrue(expected in res.output, msg=res.output) - res = bitbake("sysroot-pc-test-native -c populate_sysroot", ignore_status=True) + res = bitbake("sysroot-pc-test-native -c populate_sysroot") self.assertTrue(expected in res.output, msg=res.output) self.assertTrue('[pkgconfig]' in res.output, msg=res.output) + self.assertTrue(res.status != 0) -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#167621): https://lists.openembedded.org/g/openembedded-core/message/167621 Mute This Topic: https://lists.openembedded.org/mt/92166130/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
