14
0

- Increase timeouts for tests for s390x architecture, bsc#1218602

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CherryPy?expand=0&rev=66
This commit is contained in:
2024-01-16 15:43:25 +00:00
committed by Git OBS Bridge
parent 4957f532f5
commit f07d03f647
2 changed files with 15 additions and 1 deletions

View File

@@ -98,7 +98,16 @@ rm pytest.ini
# skip all travis known fails as they would most likely fail in obs too
export TRAVIS="true"
# testCombinedTools fails with trace in cheroot tests
%pytest -k 'not testCombinedTools'
donttest="testCombinedTools"
%if "%{_arch}" == "s390x"
# Increase timeout for tests in OBS for s390x
sed -i "s/timeout=1/timeout=10/" cherrypy/test/helper.py
sed -i "s/timeout=5/timeout=20/" cherrypy/test/helper.py
sed -i "s/timeout=5/timeout=20/" cherrypy/test/test_states.py
%endif
%pytest -k "not ($donttest)"
%pre
# If libalternatives is used: Removing old update-alternatives entries.