aboutsummaryrefslogtreecommitdiff
path: root/tests/Spec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Spec.hs')
-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"