Try to fix error on Solaris:

+ [ -f /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/referent ]
+ [ -d /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/from ]
+ [ -L /export/home/build/build_farm/rsync/testtmp.symlink-ignore/to/dangling ]
./testsuite/symlink-ignore.test: test: argument expected

Solaris says it supports -L, so I'm not sure what's happening...
This commit is contained in:
Martin Pool
2002-01-24 05:54:47 +00:00
parent 2974e20550
commit 3b18cba889

View File

@@ -18,11 +18,11 @@ build_symlinks || test_fail "failed to build symlinks"
# should be missing.
"$rsync_bin" -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"
[ -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"
[ -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