X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/660cb6a08567b62abe815e5896c0275ee3c00fb4..7918f2440534993bdda324da839b2ea9a3884757:/testsuite/daemon-gzip-upload.test diff --git a/testsuite/daemon-gzip-upload.test b/testsuite/daemon-gzip-upload.test index 49ddba99..d290228d 100644 --- a/testsuite/daemon-gzip-upload.test +++ b/testsuite/daemon-gzip-upload.test @@ -22,11 +22,10 @@ export RSYNC_CONNECT_PROG hands_setup -# If we are root, we must allow the rsyncd process (which runs under -# a different uid/gid) to write to the destination directory. Source -# directory must be chown'ed as well so that UIDs & GIDs match when -# the source & destination are compared after copying. -chown -R $RSYNCD_UID:$RSYNCD_GID "$FROM" "$TO" 2>/dev/null || true +# Build chkdir with a normal rsync and an --exclude. +$RSYNC -av --exclude=foobar.baz "$fromdir/" "$chkdir/" -checkit "$RSYNC -avvz \"$FROM/\" localhost::test-to/" "$FROM" "$TO" +checkit "$RSYNC -avvvvz '$fromdir/' localhost::test-to/" "$chkdir" "$todir" +# The script would have aborted on error, so getting here means we've won. +exit 0