mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-22 13:54:16 -04:00
Added Matt's --delete-excluded test for merge-file correctness.
This commit is contained in:
1 parent
97bf86f8ee
commit
ff43d8b449
1 file changed
+10
@@ -23,5 +23,15 @@ checkit "$RSYNC -avv --remove-sent-files \
|
||||
|
||||
diff -r "$chkdir/empty" "$fromdir"
|
||||
|
||||
# Make sure that --delete-excluded does not dump a per-dir merge-file filter.
|
||||
cat >"$todir/filters" <<EOF
|
||||
P foo
|
||||
EOF
|
||||
touch "$todir/foo"
|
||||
|
||||
$RSYNC -r --filter=': filters' --delete-excluded "$fromdir/" "$todir/"
|
||||
|
||||
test -f "$todir/foo" || test_fail "rsync incorrectly elided the merge file"
|
||||
|
||||
# The script would have aborted on error, so getting here means we've won.
|
||||
exit 0
|
||||
Reference in new issue
Block a user