diff options
Diffstat (limited to 'testsuite/rsync.fns')
-rw-r--r-- | testsuite/rsync.fns | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 926a42e5..ac7920da 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -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" } |