From 7c24fc5496b3ad3128525e6287362e94ebb279c3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 22 Oct 2016 19:44:02 +0100 Subject: 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 --- tests/lib | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/lib') diff --git a/tests/lib b/tests/lib index fe8d8fc..3fe3ab0 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" } -- cgit v1.2.3