diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-07-16 21:48:56 -0400 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@finestructure.net> | 2009-07-16 21:48:56 -0400 |
commit | 21a38eae25ffc1e9f836e60d8254cf5e960553c5 (patch) | |
tree | 92ddac2fa822b1151ddedc68d81e6fc7dbe77d38 /tests/basic | |
parent | 8af517bd1dc3eea66a64387af3e69188a536b2ee (diff) |
add a 'wait' in the test ssh_test function to try to get around the race condition problem
Diffstat (limited to 'tests/basic')
-rwxr-xr-x | tests/basic | 3 |
1 files changed, 2 insertions, 1 deletions
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 |