From 21a38eae25ffc1e9f836e60d8254cf5e960553c5 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Thu, 16 Jul 2009 21:48:56 -0400 Subject: [PATCH] add a 'wait' in the test ssh_test function to try to get around the race condition problem --- tests/basic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/basic b/tests/basic index 8b4a1ca..83bf753 100755 --- a/tests/basic +++ b/tests/basic @@ -66,7 +66,7 @@ ssh_test() { # wait until the socket is created before continuing while [ ! -S "$SOCKET" ] ; do - sleep 2 + sleep 1 done # make a client connection to the socket @@ -77,6 +77,7 @@ ssh_test() { # kill the sshd process if it's still running kill "$SSHD_PID" || true + wait SSHD_PID= if [ "$RETURN" = "$CODE" ] ; then -- 2.25.1