forked from pool/python-CherryPy
- 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:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 16 13:34:59 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Increase timeouts for tests for s390x architecture, bsc#1218602
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 14 17:18:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sun Jan 14 17:18:14 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -98,7 +98,16 @@ rm pytest.ini
|
|||||||
# skip all travis known fails as they would most likely fail in obs too
|
# skip all travis known fails as they would most likely fail in obs too
|
||||||
export TRAVIS="true"
|
export TRAVIS="true"
|
||||||
# testCombinedTools fails with trace in cheroot tests
|
# 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
|
%pre
|
||||||
# If libalternatives is used: Removing old update-alternatives entries.
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
Reference in New Issue
Block a user