diff options
author | Wayne Davison <wayned@samba.org> | 2004-01-28 00:37:55 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-01-28 00:37:55 +0000 |
commit | 284d628a7ca583b61a424241fa046856be5842b3 (patch) | |
tree | ee0d6f5b57a0bd11b53f52344018c14d70a1e86c /testsuite/merge.test | |
parent | ff3184ca1e6afba19d787fd60a355cccedccab88 (diff) | |
download | rsync-284d628a7ca583b61a424241fa046856be5842b3.tar.gz |
Got rid of indeterminacy in the overlapping-files.
Diffstat (limited to 'testsuite/merge.test')
-rw-r--r-- | testsuite/merge.test | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/testsuite/merge.test b/testsuite/merge.test index fcdc815f..3a195c48 100644 --- a/testsuite/merge.test +++ b/testsuite/merge.test @@ -25,15 +25,15 @@ mkdir "$from2dir"/sub1 "$from3dir"/sub1 mkdir "$from3dir"/sub2 mkdir "$chkdir" "$chkdir"/sub1 "$chkdir"/sub2 echo "one" >"$from1dir"/one -echo "uno" >"$from2dir"/one -echo "1" >"$from3dir"/one +cp -p "$from1dir"/one "$from2dir"/one +cp -p "$from1dir"/one "$from3dir"/one echo "two" >"$from1dir"/two echo "three" >"$from2dir"/three echo "four" >"$from3dir"/four echo "five" >"$from1dir"/five echo "six" >"$from3dir"/six echo "sub1" >"$from2dir"/sub1/uno -echo "hmm1" >"$from3dir"/sub1/uno +cp -p "$from2dir"/sub1/uno "$from3dir"/sub1/uno echo "sub2" >"$from3dir"/sub1/dos echo "sub3" >"$from2dir"/sub1/tres echo "subby" >"$from3dir"/sub2/subby @@ -42,10 +42,8 @@ cp -p "$from1dir"/one "$from1dir"/two "$from2dir"/three "$from3dir"/four "$from1 cp -p "$from2dir"/sub1/uno "$from3dir"/sub1/dos "$from2dir"/sub1/tres "$chkdir"/sub1 cp -p "$from3dir"/sub2/subby "$chkdir"/sub2 -# Fix the directory times -$RSYNC -av --include='*/' --exclude='*' "$from3dir/" "$chkdir/" -$RSYNC -av --include='*/' --exclude='*' "$from2dir/" "$chkdir/" -$RSYNC -av --include='*/' --exclude='*' "$from1dir/" "$chkdir/" +# Get rid of any directory-time differences +find "$from1dir" "$from2dir" "$from3dir" "$chkdir" -type d -print0 | xargs -0 touch checkit "$RSYNC -aHvv \"$fromdir\"?/ \"$todir/\"" "$chkdir" "$todir" |