Showing the changes to testsuite/ssh-basic.test (1 of 3 files). Show all
Unified · Split
| @@ -10,20 +10,7 @@ · 9 unmodified lines | ||
| 10 | 10 | |
| 11 | 11 | . "$suitedir/rsync.fns" |
| 12 | 12 | |
| 13 | −SSH="$scratchdir/pretend-ssh" | |
| 14 | − | |
| 15 | −cat >"$SSH" <<'EOT' | |
| 16 | −while : ; do | |
| 17 | − case "$1" in | |
| 18 | − -*) shift ;; | |
| 19 | − localhost) shift; break ;; | |
| 20 | − *) exit 1 ;; | |
| 21 | − esac | |
| 22 | −done | |
| 23 | − | |
| 24 | −eval "${@}" | |
| 25 | −EOT | |
| 26 | −chmod +x "$SSH" | |
| 13 | +SSH=support/lsh | |
| 27 | 14 | |
| 28 | 15 | if test x"$rsync_enable_ssh_tests" = xyes; then |
| 29 | 16 | if type ssh >/dev/null ; then |
| @@ -31,7 +18,7 @@ if test x"$rsync_enable_ssh_tests" = xyes; then · 1 unmodified line | ||
| 31 | 18 | fi |
| 32 | 19 | fi |
| 33 | 20 | |
| 34 | −if ! [ "`"$SSH" -o'BatchMode yes' localhost echo yes`" = "yes" ]; then | |
| 21 | +if ! [ "`$SSH -o'BatchMode yes' localhost echo yes`" = "yes" ]; then | |
| 35 | 22 | test_skipped "Skipping SSH tests because ssh conection to localhost not authorised" |
| 36 | 23 | fi |
| 37 | 24 | |