From: Jameson Graef Rollins Date: Fri, 17 Jul 2009 01:48:56 +0000 (-0400) Subject: add a 'wait' in the test ssh_test function to try to get around the race condition... X-Git-Tag: monkeysphere_0.25~2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=21a38eae25ffc1e9f836e60d8254cf5e960553c5;p=monkeysphere.git add a 'wait' in the test ssh_test function to try to get around the race condition problem --- 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