aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Spec.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/Spec.hs b/tests/Spec.hs
index 505b276..8665c61 100644
--- a/tests/Spec.hs
+++ b/tests/Spec.hs
@@ -1,4 +1,8 @@
import Distribution.Helper
+import System.Environment
+import Data.Maybe
+main :: IO ()
main = do
+ setEnv "HOME" =<< fromMaybe "/tmp" <$> lookupEnv "TMPDIR"
writeAutogenFiles "./dist"