Can run-ptest be rewritten to load the list of tests to skip from a file, and then the recipe would add to that file instead? These sed hacks are brittle and barely readable.
Alex On Sat, 19 Oct 2024 at 20:48, Khem Raj via lists.openembedded.org <[email protected]> wrote: > > These tests expect glibc to be the system C library > ignore them for musl > > Signed-off-by: Khem Raj <[email protected]> > --- > meta/recipes-devtools/python/python3-packaging_24.1.bb | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/meta/recipes-devtools/python/python3-packaging_24.1.bb > b/meta/recipes-devtools/python/python3-packaging_24.1.bb > index 20bcd55fbad..f8465d9fdb7 100644 > --- a/meta/recipes-devtools/python/python3-packaging_24.1.bb > +++ b/meta/recipes-devtools/python/python3-packaging_24.1.bb > @@ -25,6 +25,10 @@ do_install_ptest() { > rm -f ${D}${PTEST_PATH}/tests/manylinux/build.sh > } > > +do_install_ptest:append:libc-musl() { > + sed -i -e '/^pytest/ s|$| --deselect > tests/test_manylinux.py::test_is_manylinux_compatible_old > --ignore=tests/test_tags.py|' ${D}${PTEST_PATH}/run-ptest > +} > + > RDEPENDS:${PN}-ptest = "\ > python3-ctypes \ > python3-pretend \ > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#206106): https://lists.openembedded.org/g/openembedded-core/message/206106 Mute This Topic: https://lists.openembedded.org/mt/109104794/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
