X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3fedd74ba21c4dd9d64d384881271d19fc80dc47..3b18cba8890665787f035135fca9d8d9fdfd0aa0:/testsuite/ssh-basic.test diff --git a/testsuite/ssh-basic.test b/testsuite/ssh-basic.test index e1aeb413..c24ac3e2 100644 --- a/testsuite/ssh-basic.test +++ b/testsuite/ssh-basic.test @@ -10,12 +10,18 @@ . "$suitedir/rsync.fns" -if ! type ssh >/dev/null 2>&1; then +if [ "x$rsync_enable_ssh_tests" != xyes ] +then + echo "Skipping SSH tests because \$rsync_enable_ssh_tests is not set" + exit 77 +fi + +if ! type ssh >/dev/null ; then echo "Skipping SSH tests because ssh is not in the path" exit 77 fi -if ! [ "`ssh -o'BatchMode yes' localhost echo yes 2>/dev/null`" = "yes" ]; then +if ! [ "`ssh -o'BatchMode yes' localhost echo yes`" = "yes" ]; then echo "Skipping SSH tests because ssh conection to localhost not authorised" exit 77 fi