From: Martin Pool Date: Fri, 11 Jan 2002 08:08:34 +0000 (+0000) Subject: When checking what was copied, use specific -d -f -L flags to test X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/fdfc3dc9f3e501a9b612af9ed871b621bb386984 When checking what was copied, use specific -d -f -L flags to test rather than -e. (Perhaps Solaris doesn't have test -e?) --- diff --git a/testsuite/symlink-ignore.test b/testsuite/symlink-ignore.test index fec89134..5cfd3e92 100644 --- a/testsuite/symlink-ignore.test +++ b/testsuite/symlink-ignore.test @@ -18,11 +18,11 @@ build_symlinks || test_fail "failed to build symlinks" # should be missing. "$rsync_bin" -r "$fromdir/" "$todir" || test_fail "rsync returned $?" -[ -e "$todir/referent" ] || test_fail "referent was not copied" -[ -e "$todir/from" ] && test_fail "extra level of directories" -[ -e "$todir/dangling" ] && test_fail "dangling symlink was copied" -[ -e "$todir/relative" ] && test_fail "relative symlink was copied" -[ -e "$todir/absolute" ] && test_fail "absolute symlink was copied" +[ -f "$todir/referent" ] || test_fail "referent was not copied" +[ -d "$todir/from" ] && test_fail "extra level of directories" +[ -L "$todir/dangling" ] && test_fail "dangling symlink was copied" +[ -L "$todir/relative" ] && test_fail "relative symlink was copied" +[ -L "$todir/absolute" ] && test_fail "absolute symlink was copied" exit 0 # last [] may have failed but if we get here then we've one