chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Infra: ssh-wrap: set PERLLIB and get name of script right
[dgit.git]
/
tests
/
dsd-ssh
diff --git
a/tests/dsd-ssh
b/tests/dsd-ssh
index bc179f5f8ccd8bfce3bd4d37fad65521ac811485..94a95827f2c0cfccbfd6a83708f17e56c885f1c6 100755
(executable)
--- a/
tests/dsd-ssh
+++ b/
tests/dsd-ssh
@@
-8,6
+8,11
@@
tmp=$DGIT_TEST_TMP
cd /
userhost="$1"; shift
export SSH_ORIGINAL_COMMAND="$*"
cd /
userhost="$1"; shift
export SSH_ORIGINAL_COMMAND="$*"
-${DGIT_SSH_DISPATCH_TEST-dgit-ssh-dispatch} -D $tmp/dispatch-dir
+
+# 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_SSH_DISPATCH_TEST-dgit-ssh-dispatch} -D $tmp
: '))))))))))))))))))))))))))))))))))))))))'
: '))))))))))))))))))))))))))))))))))))))))'