From 2d4503cd1a72b50e9362ecf50dc8bd51e95534d2 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Tue, 19 Sep 2017 21:53:06 +0200 Subject: tests: Remove cleaning of cache dir .. mostly because the paths are wrong now but I also think keeping these dirty across the tests simulates the users environment better. --- tests/CompileTest.hs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/CompileTest.hs b/tests/CompileTest.hs index 979ace0..a451fdd 100644 --- a/tests/CompileTest.hs +++ b/tests/CompileTest.hs @@ -123,7 +123,6 @@ data HEAD = HEAD deriving (Eq, Show) compilePrivatePkgDb :: Either HEAD Version -> IO (Either ExitCode FilePath) compilePrivatePkgDb (Left HEAD) = do - _ <- rawSystem "rm" [ "-r", "/tmp/.ghc-mod" ] res <- (Right <$> installCabalHEAD defaultOptions { verbose = True }) `E.catch` \(SomeException ex) -> return $ Left $ "ERROR: Installing cabal HEAD failed: " ++ show ex @@ -134,7 +133,6 @@ compilePrivatePkgDb (Left HEAD) = do Right (db, commit) -> compileWithPkg (Just db) (Left commit) compilePrivatePkgDb (Right cabalVer) = do - _ <- rawSystem "rm" [ "-r", "/tmp/.ghc-mod" ] db <- installCabal defaultOptions { verbose = True } cabalVer `E.catch` \(SomeException _) -> do errorInstallCabal cabalVer "dist" -- cgit v1.2.3