Deselect fewer (different) tests in %check

This commit is contained in:
Miro Hrončok 2024-01-17 01:29:42 +01:00
parent 6ddeeb114d
commit 0ac200220d

View File

@ -154,66 +154,59 @@ export FLEXIBLAS=netlib
# default test timeout
TIMEOUT=500
# https://github.com/scipy/scipy/issues/17912
SKIP_ALL="\
not TestDatasets and \
not TestOde and \
not TestComplexOde and \
not TestVODECheckParameterUse and \
not TestZVODECheckParameterUse and \
not test_banded_ode_solvers and \
not test_examples[True-complex64]"
export PYTEST_ADDOPTS="-k '$SKIP_ALL'"
# TestConstructUtils::test_concatenate_int32_overflow is flaky on aarch64
%ifarch aarch64 ppc64le
# https://bugzilla.redhat.com/show_bug.cgi?id=1959353
export PYTEST_ADDOPTS="-k '$SKIP_ALL and \
not test_solve_discrete_are and \
not test_maxiter_worsening[lgmres] and \
not test_concatenate_int32_overflow and \
not test_expm_multiply_dtype'"
%ifarch aarch64
TIMEOUT=1000
# this is flaky according to the original Fedora spec
export PYTEST_ADDOPTS="-k 'not test_concatenate_int32_overflow'"
%endif
%ifarch ppc64le
TIMEOUT=1000
%if 0%{?rhel} == 8
# this fails in rhel8 brew but not in c8s koji
# it has already been deselected in python3.11-scipy
export PYTEST_ADDOPTS="-k 'not TestFFTConvolve and \
not TestDoubleFFT and \
not TestSingleFFT and \
not TestDoubleIFFT and \
not TestSingleIFFT and \
not test_tpsv and \
not TestLinear and \
not test_various_drivers_standard and \
not test_Mx1_economic and \
not test_hegst and \
not test_tpqrt_tpmqrt and \
not test_pteqr and \
not test_pptrs_pptri_pptrf_ppsv_ppcon and \
not test_against_numpy_convolve and \
not test_convolve_method and \
not test_rank1 and \
not test_splu_smoketest and \
not test_spilu_smoketest and \
not test_threads_parallel and \
not test_hermitian and \
not test_convergence and \
not test_precond_dummy and \
not test_x0_equals_Mb and \
not test_show and \
not test_svdp and \
not test_examples'"
%endif
%endif
%ifarch s390x
# https://bugzilla.redhat.com/show_bug.cgi?id=1959353
export PYTEST_ADDOPTS="-k '$SKIP_ALL and \
not test_solve_discrete_are and \
not test_maxiter_worsening[lgmres] and \
not TestInterop and \
not TestSplder and \
not test_dblint and \
not TestUnivariateSpline and \
not TestLSQBivariateSpline and \
not TestPPoly and \
not TestLevyStable and \
not test_distance_transform_cdt05'"
TIMEOUT=1000
export PYTEST_ADDOPTS="-k 'not test_distance_transform_cdt05 and not (TestZlibInputStream and test_all_data_read_)'"
%endif
%ifarch x86_64
# skip also failing test_sygst for now
export PYTEST_ADDOPTS="-k '$SKIP_ALL and \
%{?rhel:not TestPPoly and \
not TestLinprogIPSparse and \
not test_axis_nan_policy_full and} \
not test_sygst'"
# this sometimes failed in rhel8 brew, but not in c8s koji or rhel9/c9s
# assuming it's flaky or hardware/kernel dependent and disabling unconditionally
export PYTEST_ADDOPTS="-k 'not test_large_rank_deficient'"
%endif
%ifarch i686 armv7hl
# skip also test_cython_api: https://bugzilla.redhat.com/show_bug.cgi?id=2068496
# https://github.com/scipy/scipy/issues/17213
export PYTEST_ADDOPTS="-k '$SKIP_ALL and \
not test_sygst and \
not test_cython_api and \
not test_examples and \
not test_shifts and \
not test_mu and \
not test_sum and \
not test_svdp and \
not test_resiliency_all_32 and \
not test_resiliency_random[TestCSC-test_sum_dtype]'"
%ifarch i686
export PYTEST_ADDOPTS="-k 'not test_gh12218 and not test_x0_equals_Mb[bicgstab-nonsymposdef-F]'"
%endif
pushd %{buildroot}/%{python3_sitearch}