chiark / gitweb /
Tests: Introduce t-set-using-tmp and use it in lib and adhoc
[dgit.git] / tests / lib-core
index 98ae85f..f3881ca 100644 (file)
@@ -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
+}