Try to fix error on Solaris:
authorMartin Pool <mbp@samba.org>
Thu, 24 Jan 2002 05:54:47 +0000 (05:54 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 24 Jan 2002 05:54:47 +0000 (05:54 +0000)
+ [ -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...

testsuite/symlink-ignore.test

index 5cfd3e9..41ef0ee 100644 (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