From d228327cc4aec6fef736c5d44abb0edf025a57f0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 17 May 2015 14:17:37 +0100 Subject: Tests: Introduce t-set-using-tmp and use it in lib and adhoc --- tests/lib-core | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/lib-core') diff --git a/tests/lib-core b/tests/lib-core index 98ae85f..f3881ca 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -14,3 +14,10 @@ t-set-intree () { export DGIT_TEST DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST export PERLLIB="$DGIT_TEST_INTREE${PERLLIB:+:}${PERLLIB}" } + +t-set-using-tmp () { + export HOME=$tmp + export DGIT_TEST_DUMMY_DIR=$tmp + export DGIT_TEST_TMP=$tmp + export GNUPGHOME=$tmp/gnupg +} -- cgit v1.2.3