aboutsummaryrefslogtreecommitdiff
path: root/tests/Spec.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-10-30 21:41:54 +0100
committerDaniel Gröber <dxld@darkboxed.org>2015-10-30 22:47:32 +0100
commit563aa546821b1ddb4fdf87ad43cb739411f197cc (patch)
tree9e41cdd9a461165a8662903a046ff960f933a603 /tests/Spec.hs
parent1ae35dd74cf0c60685f4c862c801afaa01aff623 (diff)
Cleanup .ghc-mod when running tests
just to be sure
Diffstat (limited to 'tests/Spec.hs')
-rw-r--r--tests/Spec.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Spec.hs b/tests/Spec.hs
index ea6aff8..1294dd8 100644
--- a/tests/Spec.hs
+++ b/tests/Spec.hs
@@ -72,6 +72,7 @@ main = do
compilePrivatePkgDb :: Version -> IO (Either ExitCode FilePath)
compilePrivatePkgDb cabalVer = do
+ _ <- rawSystem "rm" [ "-r", "/tmp/.ghc-mod" ]
db <- installCabal defaultOptions cabalVer `E.catch`
\(SomeException _) -> errorInstallCabal cabalVer "dist"
compileWithPkg "." (Just db) cabalVer