X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=tests%2Fbasic;h=6eb0b2777eb1ee2268a33430c861147f6d9a2e94;hb=2e7a44d1e4fa348849bc821ced6d04ace4006d3c;hp=8b4a1ca9cf7cd17146ca474cda4aedbd280870d6;hpb=811990b737bca2bd6ed26f9d002e55a9aa0b0cc2;p=monkeysphere.git diff --git a/tests/basic b/tests/basic index 8b4a1ca..6eb0b27 100755 --- a/tests/basic +++ b/tests/basic @@ -2,7 +2,8 @@ # Tests to ensure that the monkeysphere is working # -# unset MONKEYSPHERE_TEST_NO_EXAMINE to examine +# unset MONKEYSPHERE_TEST_NO_EXAMINE to get a prompt to examine the +# test state after failure. # Authors: # Daniel Kahn Gillmor @@ -66,7 +67,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 +78,7 @@ ssh_test() { # kill the sshd process if it's still running kill "$SSHD_PID" || true + wait SSHD_PID= if [ "$RETURN" = "$CODE" ] ; then @@ -144,6 +146,35 @@ export SOCKET="$TEMPDIR"/ssh-socket export DISPLAY=monkeys +## we cannot do proper directory permissions checking if the current +## working directory has unsatisfactory permissions: +if ( . "$MONKEYSPHERE_SYSSHAREDIR"/common && check_key_file_permissions $(whoami) "$TEMPDIR" ) ; then + echo "Permissions on temporary directory '$TEMPDIR' are OK for permissions checks." + TEMPDIR_PERMISSIONS_SAFE=yes +else + cat <> "$SSHD_CONFIG" +StrictModes no +EOF +fi + ###################################################################### ### SERVER HOST SETUP