]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- try random port for tests
authorAdam Gołębiowski <adamg@pld-linux.org>
Fri, 19 Oct 2018 17:28:38 +0000 (19:28 +0200)
committerAdam Gołębiowski <adamg@pld-linux.org>
Fri, 19 Oct 2018 17:28:38 +0000 (19:28 +0200)
openssh.spec

index 90f2e58ced30db02e350d4e8386eaeee9e507c94..7c0daac62bdaada7f68ff1e28a3ee3dd89af6551 100644 (file)
@@ -588,7 +588,10 @@ echo '#define LOGIN_PROGRAM                   "/bin/login"' >>config.h
 
 %{__make}
 
-%{?with_tests:%{__make} -j1 tests}
+%if %{with tests}
+%{__make} -j1 tests \
+       TEST_SSH_PORT=$((4242 + ${RANDOM:-$$} % 1000))
+%endif
 
 cd contrib
 %if %{with gnome}
This page took 0.031447 seconds and 4 git commands to generate.