forked from pool/python-PySDL2
- Otherwise, we actually don’t need to explicitly skip ANY
tests! Wow! OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=19
This commit is contained in:
@@ -20,6 +20,8 @@ Fri Jul 29 12:38:06 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
|||||||
- Various bugfixes (see the project's news.rst for more info)
|
- Various bugfixes (see the project's news.rst for more info)
|
||||||
- Add mixer_tests_fix.patch to switch off failing tests
|
- Add mixer_tests_fix.patch to switch off failing tests
|
||||||
(gh#py-sdl/py-sdl2#241).
|
(gh#py-sdl/py-sdl2#241).
|
||||||
|
- Otherwise, we actually don’t need to explicitly skip ANY
|
||||||
|
tests! Wow!
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 20 09:55:17 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Sun Mar 20 09:55:17 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
@@ -85,22 +85,7 @@ export SDL_AUDIODRIVER=dummy
|
|||||||
export SDL_RENDER_DRIVER=software
|
export SDL_RENDER_DRIVER=software
|
||||||
export PYTHONFAULTHANDLER=1
|
export PYTHONFAULTHANDLER=1
|
||||||
|
|
||||||
donttest="pytest_k_dummyprefix"
|
%pytest -rfEs
|
||||||
# color mismatches, test shell variable because this is a noarch package
|
|
||||||
if [ "$RPM_ARCH" = "ppc64" -o "$RPM_ARCH" = "ppc64le" -o "$RPM_ARCH" = "s390x" ]; then
|
|
||||||
donttest="$donttest or sdl2ext"
|
|
||||||
fi
|
|
||||||
# Does not recognize big endian byteorder
|
|
||||||
if [ $(python3 -c "import sys; print(sys.byteorder)") = "big" ]; then
|
|
||||||
donttest="$donttest or PixelFormatEnum"
|
|
||||||
fi
|
|
||||||
%if 0%{suse_version} < 1550
|
|
||||||
# Segfault with SDL on Leap
|
|
||||||
donttest="$donttest or test_SDL_GetPowerInfo"
|
|
||||||
# python2 env different, pytest arg missing
|
|
||||||
python2_donttest=" or test_SDL_GetBasePath or test_render_on"
|
|
||||||
%endif
|
|
||||||
%pytest -rfEs -k "not ($donttest ${$python_donttest})"
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING.txt
|
%license COPYING.txt
|
||||||
|
Reference in New Issue
Block a user