Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
2d8f9b1d
Commit
2d8f9b1d
authored
Feb 10, 2008
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore exit-code 23 when we expect a daemon-excluded file to be excluded.
parent
68f1e7e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
batch-mode.test
testsuite/batch-mode.test
+1
-1
daemon-gzip-upload.test
testsuite/daemon-gzip-upload.test
+1
-1
rsync.fns
testsuite/rsync.fns
+19
-0
No files found.
testsuite/batch-mode.test
View file @
2d8f9b1d
...
...
@@ -43,7 +43,7 @@ runtest "BATCH.sh use of --read-batch" 'checkit "./BATCH.sh" "$chkdir" "$todir"'
rm
-
rf
"
$todir
"
mkdir
"
$todir
"
||
test_fail
"failed to restore empty destination directory"
runtest
"daemon recv --write-batch"
'checkit "$RSYNC -av --write-batch=BATCH \"$fromdir/\" rsync://localhost/test-to" "$chkdir" "$todir"'
runtest
"daemon recv --write-batch"
'checkit "
\"$ignore23\"
$RSYNC -av --write-batch=BATCH \"$fromdir/\" rsync://localhost/test-to" "$chkdir" "$todir"'
# The script would have aborted on error, so getting here means we pass.
exit
0
testsuite/daemon-gzip-upload.test
View file @
2d8f9b1d
...
...
@@ -25,7 +25,7 @@ hands_setup
# Build chkdir with a normal rsync and an --exclude.
$RSYNC
-
av
--
exclude
=
foobar
.
baz
"
$fromdir
/"
"
$chkdir
/"
checkit
"
$RSYNC
-avvvvz '
$fromdir
/' localhost::test-to/"
"
$chkdir
"
"
$todir
"
checkit
"
'
$ignore23
'
$RSYNC
-avvvvz '
$fromdir
/' localhost::test-to/"
"
$chkdir
"
"
$todir
"
# The script would have aborted on error, so getting here means we've won.
exit
0
testsuite/rsync.fns
View file @
2d8f9b1d
...
...
@@ -256,6 +256,25 @@ gid = 0
path =
$scratchdir
read only = no
EOF
# Build a helper script to ignore exit code 23
ignore23
=
"
$scratchdir
/ignore23"
echo
"building help script
$ignore23
"
cat
>
"
$ignore23
"
<<
'
EOT
'
if "
${
@
}
"; then
exit
fi
ret=
$?
if test
$ret
= 23; then
exit
fi
exit
$ret
EOT
chmod
+x
"
$ignore23
"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment