From a72473c5d2525eb8bdf438bdca6b1f685b082e347a4352f14fd499c14ac96932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 24 Sep 2018 07:35:33 +0000 Subject: [PATCH 1/2] - Do make sure to error out on test failure. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=10 --- python-websockets.changes | 5 +++++ python-websockets.spec | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/python-websockets.changes b/python-websockets.changes index 8e03db1..2713a7f 100644 --- a/python-websockets.changes +++ b/python-websockets.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 24 07:35:18 UTC 2018 - Tomáš Chvátal + +- Do make sure to error out on test failure. + ------------------------------------------------------------------- Wed Aug 29 11:41:58 UTC 2018 - tchvatal@suse.com diff --git a/python-websockets.spec b/python-websockets.spec index 33d3dae..4ed547c 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -55,10 +55,8 @@ export CFLAGS="%{optflags}" %check # Test execution speed depends on BS load and architecture, relax -# With 6.0 release tests got very racy, retest when updating -# https://github.com/aaugustin/websockets/issues/415 export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=5 -%python_exec setup.py test || : +%python_exec setup.py test %files %{python_files} %license LICENSE From 591e075f50957927112e58bcc875b7bf8da2de04a7127392b7bf0e3061b0458a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 1 Oct 2018 07:22:45 +0000 Subject: [PATCH 2/2] - Call the tests the same way as upstream to avoid import cycles OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=11 --- python-websockets.changes | 5 +++++ python-websockets.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-websockets.changes b/python-websockets.changes index 2713a7f..2254a3c 100644 --- a/python-websockets.changes +++ b/python-websockets.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 1 07:22:29 UTC 2018 - Tomáš Chvátal + +- Call the tests the same way as upstream to avoid import cycles + ------------------------------------------------------------------- Mon Sep 24 07:35:18 UTC 2018 - Tomáš Chvátal diff --git a/python-websockets.spec b/python-websockets.spec index 4ed547c..c939949 100644 --- a/python-websockets.spec +++ b/python-websockets.spec @@ -56,7 +56,7 @@ export CFLAGS="%{optflags}" %check # Test execution speed depends on BS load and architecture, relax export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=5 -%python_exec setup.py test +%python_exec -m unittest %files %{python_files} %license LICENSE