summaryrefslogtreecommitdiff
path: root/tests/lib-core
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-core
parent5f9258f673404e784b450631b39ba433a1fda945 (diff)
Tests: Introduce t-set-using-tmp and use it in lib and adhoc
Diffstat (limited to 'tests/lib-core')
-rw-r--r--tests/lib-core7
1 files changed, 7 insertions, 0 deletions
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
+}