From fee81c867fdd19939d4480668c147aa3c670a7ed5c2817701d6092cb950da264 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 13 May 2020 09:18:22 +0000 Subject: [PATCH] Better organization of skipped tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=62 --- python-numpy.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-numpy.spec b/python-numpy.spec index 09236b0..07c30dd 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -251,12 +251,12 @@ export PYTHONDONTWRITEBYTECODE=1 export PATH="%{buildroot}%{_bindir}:$PATH" mkdir testing pushd testing -%ifarch ppc64 ppc64le -%pytest_arch -n auto --pyargs numpy || echo "Warning: ignore check error for PowerPC bypass boo#1148173" -%else +SKIP_TESTS="" +%ifarch %{ix86} # gh#numpy/numpy#16212 -%pytest_arch -n auto --pyargs numpy -k 'not (test_big_arrays or test_empty_npz or test_savez_filename_clashes)' +SKIP_TESTS+="not (test_big_arrays or test_empty_npz or test_savez_filename_clashes)" %endif +%pytest_arch -n auto --pyargs numpy -k "$SKIP_TESTS" popd %endif