python3: exclude test_timerfd_TFD_TIMER_ABSTIME from ptest
cover python3: exclude test_timerfd_TFD_TIMER_ABSTIME from ptest
Add a test exclusion, and rework how test exclusions are specified. The first patch can be merged alone, if needed.
---
Mathieu Dubois-Briand (2):
python3: exclude test_timerfd_TFD_TIMER_ABSTIME from ptest
python3: Simplify ptest exclusion list
meta/recipes-devtools/python/python3_3.14.4.bb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
---
base-commit: a9cc47107cbbfe1cc4bc91bf01dc1ffafa5f9bec
change-id: 20260417-mathieu-python3-ptest-8b3feb270993
Best regards,
Signature · 1 line
Mathieu Dubois-Briand <[email protected]>
PATCH 1/2 python3: exclude test_timerfd_TFD_TIMER_ABSTIME from ptest
This test tends to fail intermittently, probably when the qemu machine is a bit too slow.
Fixes [YOCTO #15743]
--- meta/recipes-devtools/python/python3_3.14.4.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-devtools/python/python3_3.14.4.bb +5 -1
@@ -251,8 +251,12 @@ 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 () { + sed -i -e 's|SKIPPED_TESTS=|SKIPPED_TESTS="--ignore test.test_os.test_os.TimerfdTests.test_timerfd_TFD_TIMER_ABSTIME"|' ${D}${PTEST_PATH}/run-ptest +} + 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 --ignore test.test_strptime.StrptimeTests.test_date_locale2 --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym"|' ${D}${PTEST_PATH}/run-ptest + 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 --ignore test.test_strptime.StrptimeTests.test_date_locale2 --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym --ignore test.test_os.test_os.TimerfdTests.test_timerfd_TFD_TIMER_ABSTIME"|' ${D}${PTEST_PATH}/run-ptest } SYSROOT_PREPROCESS_FUNCS:append:class-target = " provide_target_config_script"
Signature · 1 line
2.47.3
PATCH 2/2 python3: Simplify ptest exclusion list
In reply to Mathieu Dubois-BriandMakes the exclusion list a bit more readable, avoiding very long sed expression lines.
--- meta/recipes-devtools/python/python3_3.14.4.bb | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-)
meta/recipes-devtools/python/python3_3.14.4.bb +14 -5
@@ -251,12 +251,21 @@ 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 () { - sed -i -e 's|SKIPPED_TESTS=|SKIPPED_TESTS="--ignore test.test_os.test_os.TimerfdTests.test_timerfd_TFD_TIMER_ABSTIME"|' ${D}${PTEST_PATH}/run-ptest -} +SKIPPED_TESTS = "--ignore test.test_os.test_os.TimerfdTests.test_timerfd_TFD_TIMER_ABSTIME" +SKIPPED_TESTS:append:class-target:libc-musl = " \ + -x test__locale \ + -x test_c_locale_coercion \ + -x test_locale \ + -x test_os test_re \ + -x test__xxsubinterpreters \ + -x test_threading \ + --ignore test.test_strptime.StrptimeTests.test_date_locale2 \ + --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym \ +" -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 --ignore test.test_strptime.StrptimeTests.test_date_locale2 --ignore test.test_ctypes.test_dlerror.TestNullDlsym.test_null_dlsym --ignore test.test_os.test_os.TimerfdTests.test_timerfd_TFD_TIMER_ABSTIME"|' ${D}${PTEST_PATH}/run-ptest + +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"
Signature · 1 line
2.47.3