add a 'wait' in the test ssh_test function to try to get around the race condition...
authorJameson Graef Rollins <jrollins@finestructure.net>
Fri, 17 Jul 2009 01:48:56 +0000 (21:48 -0400)
committerJameson Graef Rollins <jrollins@finestructure.net>
Fri, 17 Jul 2009 01:48:56 +0000 (21:48 -0400)
tests/basic

index 8b4a1ca9cf7cd17146ca474cda4aedbd280870d6..83bf7536a04c4a57dbe6e67624b2b61c6f6a42f1 100755 (executable)
@@ -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