diff options
Diffstat (limited to 'tests/run-all')
-rwxr-xr-x | tests/run-all | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/run-all b/tests/run-all index e1718fa..a37b6aa 100755 --- a/tests/run-all +++ b/tests/run-all @@ -21,7 +21,17 @@ if [ $# != 0 ]; then set TESTSCRIPTS="$*" fi -tmpdir=tests/tmp +if [ "x$DGIT_TESTS_TMPDIR" != x ]; then + tmpdir="$PWD" + tmpdir="${tmpdir#/}" + tmpdir="${tmpdir//!/!#!}" + tmpdir="${tmpdir//\//!}" + tmpdir="$DGIT_TESTS_TMPDIR/$tmpdir" + rm -f tests/tmp + ln -ns -- "$tmpdir" tests/tmp +else + tmpdir=tests/tmp +fi case "$DGIT_TESTS_PROGRESSIVE" in ''|n) |