From 60c3bc46b8a86e5a00e3b0da3c1b6f4000794657 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Fri, 22 May 2020 20:27:42 +0200 Subject: [PATCH 1/2] Use fixed port number for our python tests Randomly generated port numbers worked just find on developer's machines but Koji have issues with some of the numbers. Let's not burn hours trying to figure out which ports work and which doesn't and just settle on one fixed number. It is more deterministic and reproducible anyway. --- tests/test_upload_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_upload_script.py b/tests/test_upload_script.py index cbd6fdc..3931521 100644 --- a/tests/test_upload_script.py +++ b/tests/test_upload_script.py @@ -74,7 +74,7 @@ class UploadTest(unittest.TestCase): def setUp(self): self.hostname = 'localhost' - self.port = random.randrange(59898, 65534) + self.port = 8888 # Create temporary filesystem tree self.topdir = tempfile.mkdtemp() os.chmod(self.topdir, 0o0777) From a9e118744121da503cf02c6c1c2993696e27002e Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 25 May 2020 01:00:34 +0200 Subject: [PATCH 2/2] Revert "disable unit tests as they do not pass with network disabled during build" This reverts commit 1a3ca4219f08c49080d29e3db2806efe06239b9a. --- dist-git.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist-git.spec b/dist-git.spec index 548e101..dd37755 100644 --- a/dist-git.spec +++ b/dist-git.spec @@ -110,11 +110,11 @@ exit 0 %check -#%if 0%{?rhel} && 0%{?rhel} < 8 -#nosetests . -#%else -#nosetests-3 . -#%endif +%if 0%{?rhel} && 0%{?rhel} < 8 +nosetests . +%else +nosetests-3 . +%endif %install