From f07d03f6478613f2ee3c4a9df7df1d68653dda8e5fa6f16df8ddaae84e634618 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 16 Jan 2024 15:43:25 +0000 Subject: [PATCH] - 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 --- python-CherryPy.changes | 5 +++++ python-CherryPy.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-CherryPy.changes b/python-CherryPy.changes index 2280a25..6dac192 100644 --- a/python-CherryPy.changes +++ b/python-CherryPy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 16 13:34:59 UTC 2024 - Daniel Garcia + +- Increase timeouts for tests for s390x architecture, bsc#1218602 + ------------------------------------------------------------------- Sun Jan 14 17:18:14 UTC 2024 - Dirk Müller diff --git a/python-CherryPy.spec b/python-CherryPy.spec index 9371237..43b3d8f 100644 --- a/python-CherryPy.spec +++ b/python-CherryPy.spec @@ -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.