From: Ian Jackson Date: Sat, 22 Oct 2016 18:44:02 +0000 (+0100) Subject: Test suite: Propagate tmpbase into nested (setup) runs X-Git-Tag: archive/debian/2.5~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=7c24fc5496b3ad3128525e6287362e94ebb279c3;p=dgit.git Test suite: Propagate tmpbase into nested (setup) runs This stops t-setup-import wrongly deciding we are in ADT non-shared mode. Signed-off-by: Ian Jackson --- diff --git a/tests/lib b/tests/lib index fe8d8fc0..3fe3ab06 100644 --- a/tests/lib +++ b/tests/lib @@ -42,6 +42,8 @@ if [ x"$tmp" = x ]; then tmp=tests/tmp/$testname rm -rf $tmp mkdir $tmp +elif [ "x$DGIT_TEST_TMPBASE" != x ]; then + tmpbase="$DGIT_TEST_TMPBASE" fi cd $tmp @@ -925,6 +927,7 @@ t-chain-test () { local d=${0%/*} cd $root export DGIT_TEST_TESTNAME="$testname" + export DGIT_TEST_TMPBASE="$tmpbase" export ADTTMP=$tmp exec "$d/$ct" }