From 5e8e7dd4ebb4b501555d1fd62cc93bece76d04ce Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 6 May 2016 16:34:18 +0200 Subject: tests: use --linger0 when running gnutls-serv This will reduce the number of failed tests due to port re-use. --- tests/scripts/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh index b338201cb2..32e3827376 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -37,7 +37,7 @@ fail() { launch_server() { PARENT="$1" shift - ${SERV} ${DEBUG} -p "${PORT}" $* >/dev/null 2>&1 & + ${SERV} ${DEBUG} -p "${PORT}" --linger0 $* >/dev/null 2>&1 & LOCALPID="$!" trap "[ ! -z \"${LOCALPID}\" ] && kill ${LOCALPID};" 15 wait "${LOCALPID}" @@ -54,7 +54,7 @@ launch_pkcs11_server() { shift PROVIDER="$1" shift - ${VALGRIND} ${SERV} ${PROVIDER} ${DEBUG} -p "${PORT}" $* & + ${VALGRIND} ${SERV} ${PROVIDER} ${DEBUG} -p "${PORT}" --linger0 $* & LOCALPID="$!" trap "[ ! -z \"${LOCALPID}\" ] && kill ${LOCALPID};" 15 wait "${LOCALPID}" @@ -69,7 +69,7 @@ launch_pkcs11_server() { launch_bare_server() { PARENT="$1" shift - ${SERV} $* >/dev/null 2>&1 & + ${SERV} --linger0 $* >/dev/null 2>&1 & LOCALPID="$!" trap "[ ! -z \"${LOCALPID}\" ] && kill ${LOCALPID};" 15 wait "${LOCALPID}" -- cgit v1.2.1