In python3 ptests, tracemalloc_track_race fails with a segfault. To avoid ptest failures for now, skip the test.
Fixes [YOCTO #16182] Upstream Issue: https://github.com/python/cpython/issues/143143 This patch contains the following additional changes to backport from master to scarthgap: - SKIPPED_TESTS is defined outside the sed expression for better clarity ( see https://git.openembedded.org/openembedded-core/commit/?id=d9a44e7390d7c8f2c2b73572825a6f8ceeb729ac ) - class-target override is removed since ptests are only used in target builds ( see https://git.openembedded.org/openembedded-core/commit/?id=8ba5db86ac364b85fa6c1ee36fa5a037c0ee818a ) Signed-off-by: Kris Gavvala <[email protected]> Signed-off-by: Mathieu Dubois-Briand <[email protected]> Signed-off-by: Richard Purdie <[email protected]> (cherry picked from commit 7504490ba5e6ce0317dd12bdb961542062f05830) --- .../python/python3_3.12.13.bb | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/python/python3_3.12.13.bb b/meta/recipes-devtools/python/python3_3.12.13.bb index 06dbc8e892..04f3c3d300 100644 --- a/meta/recipes-devtools/python/python3_3.12.13.bb +++ b/meta/recipes-devtools/python/python3_3.12.13.bb @@ -256,8 +256,23 @@ do_install:append:class-nativesdk () { create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1' } -do_install_ptest:append:class-target:libc-musl () { - sed -i -e 's|SKIPPED_TESTS=|SKIPPED_TESTS="-x test__locale -x test_c_locale_coercion -x test_locale -x test_os test_re -x test__xxsubinterpreters -x test_threading"|' ${D}${PTEST_PATH}/run-ptest +# Fails with segfault +# Bugzilla YP 16182 (test_tracemalloc_track_race) +SKIPPED_TESTS = " \ + --ignore test.test_tracemalloc.TestCAPI.test_tracemalloc_track_race \ +" + +SKIPPED_TESTS:append:libc-musl = " \ + -x test__locale \ + -x test_c_locale_coercion \ + -x test_locale \ + -x test_os test_re \ + -x test__xxsubinterpreters \ + -x test_threading \ +" + +do_install_ptest:append () { + sed -i -e "s|SKIPPED_TESTS=|SKIPPED_TESTS=\"${SKIPPED_TESTS}\"|" ${D}${PTEST_PATH}/run-ptest } SYSROOT_PREPROCESS_FUNCS:append:class-target = " provide_target_config_script" -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240071): https://lists.openembedded.org/g/openembedded-core/message/240071 Mute This Topic: https://lists.openembedded.org/mt/120095072/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
