summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-17 14:17:37 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-31 11:54:14 +0100
commitd228327cc4aec6fef736c5d44abb0edf025a57f0 (patch)
tree89130b3a09caa68288ead53ff1c570690ce14ca7 /tests/lib
parent5f9258f673404e784b450631b39ba433a1fda945 (diff)
Tests: Introduce t-set-using-tmp and use it in lib and adhoc
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/lib b/tests/lib
index 3c31a29..357bb86 100644
--- a/tests/lib
+++ b/tests/lib
@@ -24,14 +24,14 @@ fi
cd $tmp
tmp=`pwd`
-export HOME=$tmp
-export DGIT_TEST_DUMMY_DIR=$tmp
+
+t-set-using-tmp
+
ln -f $troot/ssh ssh
mkdir -p $tmp/gnupg
cp $troot/gnupg/* $tmp/gnupg
chmod go-rw $tmp/gnupg/*
-export GNUPGHOME=$tmp/gnupg
mkdir -p $tmp/incoming
cat <<END >$tmp/dput.cf
@@ -343,7 +343,6 @@ t-git-config () {
t-drs () {
export DGIT_TEST_TROOT=$troot
- export DGIT_TEST_TMP=$tmp
t-git-config dgit-distro.test-dummy.git-url "ext::$troot/drs-git-ext %S "
t-git-config dgit-distro.test-dummy.git-check true
t-git-config dgit-distro.test-dummy.git-create true