Skip test_sendfile_close_peer_in_the_middle_of_receiving on ppc64le

Reported upstream https://github.com/python/cpython/issues/123384
Which was a duplicate of https://github.com/python/cpython/issues/120226

The test is fixed on the main branch, but skipping is easier than backporting.

The failure occurs with Kernel 6.10.x even when Python is built with an older Kernel.
By skipping the tests, we can ship a CVE fix.
This commit is contained in:
Miro Hrončok 2024-08-27 13:36:46 +00:00
commit 1f0b956059

View file

@ -1352,6 +1352,8 @@ CheckPython() {
# package: rpmbuild requires /usr/bin/pythonX.Y to be installed
# test_gdb on arm on Fedora 33:
# https://bugzilla.redhat.com/show_bug.cgi?id=1846390
# test_sendfile_close_peer_in_the_middle_of_receiving:
# https://github.com/python/cpython/issues/120226
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
-wW --slowest -j0 --timeout=1800 \
%if %{with bootstrap}
@ -1365,6 +1367,9 @@ CheckPython() {
-x test_gdb \
%endif
%endif
%ifarch ppc64le
-i test_sendfile_close_peer_in_the_middle_of_receiving \
%endif
echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName