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 | . "$suitedir/rsync.fns" | 11 | . "$suitedir/rsync.fns" |
| 12 | 12 | ||
| 13 | SSH="$scratchdir/pretend-ssh" | 13 | SSH=support/lsh |
| 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" | ||
| 27 | 14 | ||
| 28 | if test x"$rsync_enable_ssh_tests" = xyes; then | 15 | if test x"$rsync_enable_ssh_tests" = xyes; then |
| 29 | if type ssh >/dev/null ; then | 16 | if type ssh >/dev/null ; then |
| @@ -31,7 +18,7 @@ if test x"$rsync_enable_ssh_tests" = xyes; then · 1 unmodified line | |||
| 31 | fi | 18 | fi |
| 32 | fi | 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 | test_skipped "Skipping SSH tests because ssh conection to localhost not authorised" | 22 | test_skipped "Skipping SSH tests because ssh conection to localhost not authorised" |
| 36 | fi | 23 | fi |
| 37 | 24 | ||