[packages/openssh] - try random port for tests

adamg adamg at pld-linux.org
Fri Oct 19 19:28:45 CEST 2018


commit f50096885ce7cdeb0aa7eff0c9c3c471d30f7949
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Fri Oct 19 19:28:38 2018 +0200

    - try random port for tests

 openssh.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/openssh.spec b/openssh.spec
index 90f2e58..7c0daac 100644
--- a/openssh.spec
+++ b/openssh.spec
@@ -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}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssh.git/commitdiff/f50096885ce7cdeb0aa7eff0c9c3c471d30f7949



More information about the pld-cvs-commit mailing list