chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Honour DGIT_TEST_INTREE
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index
0133987
..
cccdc35
100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-3,6
+3,12
@@
exec 2>&1
set -x
exec 2>&1
set -x
+if [ "x$DGIT_TEST_INTREE" != x ]; then
+ : ${DGIT_TEST:=$DGIT_TEST_INTREE/dgit}
+ : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/dgit-repos-server}
+ export DGIT_TEST DGIT_REPOS_SERVER_TEST
+fi
+
root=`pwd`
troot=$root/tests
testname="${DGIT_TEST_TESTNAME-${0##*/}}"
root=`pwd`
troot=$root/tests
testname="${DGIT_TEST_TESTNAME-${0##*/}}"