summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-23 13:17:48 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-06-23 14:14:10 +0100
commitcd2f29b13d861e3a29d26339b14025d522f58966 (patch)
treeb0ca19ebeaa93733736df89f1da8473845c2cbbf
parent81e28f0e284a89d8ede573bad8cd494c911099d1 (diff)
Test suite: Make dsd-ssh work for installed-package tests
Previously it would say `perl dgit-ssh-dispatch' which causes perl to look only in `.'.
-rwxr-xr-xtests/dsd-ssh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dsd-ssh b/tests/dsd-ssh
index 94a9582..d5df5aa 100755
--- a/tests/dsd-ssh
+++ b/tests/dsd-ssh
@@ -12,7 +12,7 @@ export SSH_ORIGINAL_COMMAND="$*"
# undoes PERLLIB so that we rely on dgit-ssh-dispatch setting it
# we have to compensate with -I so that dgit-ssh-dispatch finds Dgit.pm
unset PERLLIB
-perl -I $DGIT_TEST_INTREE \
+${DGIT_TEST_INTREE+perl -I}$DGIT_TEST_INTREE \
${DGIT_SSH_DISPATCH_TEST-dgit-ssh-dispatch} -D $tmp
: '))))))))))))))))))))))))))))))))))))))))'