Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always use lchmod() if it is available.
[rsync/rsync.git]
/
testsuite
/
ssh-basic.test
diff --git
a/testsuite/ssh-basic.test
b/testsuite/ssh-basic.test
index
ff8991b
..
865de3c
100644
(file)
--- a/
testsuite/ssh-basic.test
+++ b/
testsuite/ssh-basic.test
@@
-10,20
+10,7
@@
. "$suitedir/rsync.fns"
. "$suitedir/rsync.fns"
-SSH="$scratchdir/pretend-ssh"
-
-cat >"$SSH" <<'EOT'
-while : ; do
- case "$1" in
- -*) shift ;;
- localhost) shift; break ;;
- *) exit 1 ;;
- esac
-done
-
-$*
-EOT
-chmod +x "$SSH"
+SSH="$scratchdir/src/support/lsh"
if test x"$rsync_enable_ssh_tests" = xyes; then
if type ssh >/dev/null ; then
if test x"$rsync_enable_ssh_tests" = xyes; then
if type ssh >/dev/null ; then
@@
-31,7
+18,7
@@
if test x"$rsync_enable_ssh_tests" = xyes; then
fi
fi
fi
fi
-if
! [ "`"$SSH" -o'BatchMode yes' localhost echo yes`"
= "yes" ]; then
+if
[ "`$SSH -o'BatchMode yes' localhost echo yes`" !
= "yes" ]; then
test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"
fi
test_skipped "Skipping SSH tests because ssh conection to localhost not authorised"
fi