Simplify s390x conditional testing

[skip changelog]
This commit is contained in:
Elliott Sales de Andrade 2024-06-20 23:09:54 -04:00
parent 92c93013bd
commit 01b3ebe23c

View File

@ -148,6 +148,15 @@ pytest_args=(
-k "${k-}"
# arrow tests all fail on s390x, it's not at all BE-safe
# the exclusion of arrow as a build dep on s390x above is meant to
# ensure these tests get skipped, but dask-expr requires arrow, so it
# it gets pulled into the build env anyway
# https://github.com/dask/dask/issues/11186
%ifarch s390x
--ignore %{buildroot}%{python3_sitelib}/%{srcname}/dataframe/io/tests/test_parquet.py
%endif
# Upstream uses 'thread' for Windows, but that kills the whole session, and
# we'd like to see exactly which tests fail.
--timeout_method=signal
@ -155,23 +164,9 @@ pytest_args=(
--pyargs dask
)
%ifarch s390x
# arrow tests all fail on s390x, it's not at all BE-safe
# the exclusion of arrow as a build dep on s390x above is meant to
# ensure these tests get skipped, but dask-expr requires arrow, so it
# it gets pulled into the build env anyway
# https://github.com/dask/dask/issues/11186
mv %{buildroot}%{python3_sitelib}/%{srcname}/dataframe/io/tests/test_parquet.py %{buildroot}%{python3_sitelib}/%{srcname}/dataframe/io/tests/XXparquetXX
%endif
cd docs
%{pytest} "${pytest_args[@]}"
%ifarch s390x
mv %{buildroot}%{python3_sitelib}/%{srcname}/dataframe/io/tests/XXparquetXX %{buildroot}%{python3_sitelib}/%{srcname}/dataframe/io/tests/test_parquet.py
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.rst
%license dask/array/NUMPY_LICENSE.txt