From f50096885ce7cdeb0aa7eff0c9c3c471d30f7949 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Fri, 19 Oct 2018 19:28:38 +0200 Subject: [PATCH] - 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} -- 2.43.0