X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7892e5ac776e06391b903a9da62972cb37cb4a47..e920830ec58994a4a0dff6a699e85ff303962904:/testsuite/symlink-ignore.test diff --git a/testsuite/symlink-ignore.test b/testsuite/symlink-ignore.test index 3f350211..42ce2d35 100644 --- a/testsuite/symlink-ignore.test +++ b/testsuite/symlink-ignore.test @@ -8,7 +8,7 @@ # Test rsync's somewhat over-featured symlink control: the default # behaviour is that symlinks should not be copied at all. -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" set -x @@ -18,19 +18,19 @@ build_symlinks || test_fail "failed to build symlinks" # should be missing. $RSYNC -r "$fromdir/" "$todir" || test_fail "$RSYNC returned $?" -[ -f "${todir}/referent" ] || test_fail "referent was not copied" -[ -d "${todir}/from" ] && test_fail "extra level of directories" -if is_a_link "${todir}/dangling" +[ -f "$todir/referent" ] || test_fail "referent was not copied" +[ -d "$todir/from" ] && test_fail "extra level of directories" +if is_a_link "$todir/dangling" then test_fail "dangling symlink was copied" fi -if is_a_link "${todir}/relative" +if is_a_link "$todir/relative" then test_fail "relative symlink was copied" fi -if is_a_link "${todir}/absolute" +if is_a_link "$todir/absolute" then test_fail "absolute symlink was copied" fi