summaryrefslogtreecommitdiff
path: root/tests/tests/mirror
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-09-13 16:02:26 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-09-13 16:46:40 +0100
commit33d74266cd1d03b3afe1b6626331deac6c762fb3 (patch)
tree5942231a5e81ea849f533ec04c5591b7864f7462 /tests/tests/mirror
parent31f38c5e66b193803c019c5ed394f8b26544d357 (diff)
test suite: Test dgit-mirror-ssh-wrap
This script will break if rsync changes the way it passes arguments to the peer. We need to catch that. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/mirror')
-rwxr-xr-xtests/tests/mirror4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tests/mirror b/tests/tests/mirror
index 4947688..4aa756b 100755
--- a/tests/tests/mirror
+++ b/tests/tests/mirror
@@ -31,7 +31,9 @@ set -ex
: $sentinel
cat >&2 $sentinel
shift # eat HOST
-sh -c "\$*"
+export SSH_ORIGINAL_COMMAND="\$*"
+exec \${DGIT_MIRROR_SSH_WRAP_TEST-dgit-mirror-ssh-wrap} \
+ '$tmp/git-mirror/' .git --
END
chmod +x $tmp/stunt-ssh