Accepting request 1177279 from devel:languages:python:numeric

- Skip some tests that produces a Segmentation fault in s390x

OBS-URL: https://build.opensuse.org/request/show/1177279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mpi?expand=0&rev=8
This commit is contained in:
Ana Guerrero 2024-05-28 15:29:37 +00:00 committed by Git OBS Bridge
commit 06864320b4
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 28 07:30:07 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Skip some tests that produces a Segmentation fault in s390x
-------------------------------------------------------------------
Thu Nov 10 15:24:16 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-mpi
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -64,7 +64,13 @@ mpi plugin for pytest to collect information from openmpi-based tests.
export PATH=${PATH}:%{_libdir}/mpi/gcc/%{mpiver}/bin
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
# Exclude test_fixtures, it fails for i586 arch with Segmentation fault
%pytest -v -p pytester --runpytest=subprocess -k 'not test_fixtures'
donttest="test_fixtures"
%if "%{_arch}" == "s390x"
# Exclude some test_mpi_ that fails for s390x arch with Segmentation fault
donttest+=" or test_mpi_with_mpi or test_mpi_only_mpi or test_mpi_skip_under_mpi or test_mpi_xfail or test_mpi_xfail_under_mpi"
%endif
%pytest -v -p pytester --runpytest=subprocess -k "not ($donttest)"
%files %{python_files}
%doc README.md