X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/05118158f4f59a5f512e5bab640f253332a6e181..cb197514d99d17dc3a1ce26ff8918d63307d75e4:/testsuite/symlink-ignore.test diff --git a/testsuite/symlink-ignore.test b/testsuite/symlink-ignore.test index 3f350211..eec7a301 100644 --- a/testsuite/symlink-ignore.test +++ b/testsuite/symlink-ignore.test @@ -8,9 +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 - -set -x +. "$suitedir/rsync.fns" build_symlinks || test_fail "failed to build symlinks" @@ -18,19 +16,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