History

Added a --no-cd option to support/lsh so that the script can be used by the testsuite. Improved the home-directory-changing code and added an error message when "localhost" is not the hostname specified. Use the updated script in the testsuite instead of creating a pretend-ssh script in a couple spots.

Wayne Davison committed 18 years ago

Commit 276cc451 parent 311676e3 files · +21 −35Browse files

Showing the changes to testsuite/ssh-basic.test (1 of 3 files). Show all

Unified · Split

testsuite/ssh-basic.test+2−15
@@ -10,20 +10,7 @@ · 9 unmodified lines
1010
1111 . "$suitedir/rsync.fns"
1212
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
2714
2815 if test x"$rsync_enable_ssh_tests" = xyes; then
2916 if type ssh >/dev/null ; then
@@ -31,7 +18,7 @@ if test x"$rsync_enable_ssh_tests" = xyes; then · 1 unmodified line
3118 fi
3219 fi
3320
34−if ! [ "`"$SSH" -o'BatchMode yes' localhost echo yes`" = "yes" ]; then
21+if ! [ "`$SSH -o'BatchMode yes' localhost echo yes`" = "yes" ]; then
3522 test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"
3623 fi
3724