From 7d0317a9210ddbb4f00976318910018fa9abea99 Mon Sep 17 00:00:00 2001 From: Ɓukasz Hanuszczak Date: Wed, 19 Aug 2015 16:37:43 +0200 Subject: Fix bug with test runner failing when run on multiple test packages. --- haddock-test/src/Test/Haddock.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'haddock-test/src') diff --git a/haddock-test/src/Test/Haddock.hs b/haddock-test/src/Test/Haddock.hs index 41e15978..87c16739 100644 --- a/haddock-test/src/Test/Haddock.hs +++ b/haddock-test/src/Test/Haddock.hs @@ -73,12 +73,11 @@ maybeDiff cfg@(Config { cfgDiffTool = (Just diff) }) files = do runHaddock :: Config c -> IO () runHaddock cfg@(Config { .. }) = do - haddockStdOut <- openFile cfgHaddockStdOut WriteMode - createEmptyDirectory $ cfgOutDir cfg putStrLn "Generating documentation..." forM_ cfgPackages $ \tpkg -> do + haddockStdOut <- openFile cfgHaddockStdOut WriteMode handle <- runProcess' cfgHaddockPath $ processConfig { pcArgs = concat [ cfgHaddockArgs -- cgit v1.2.3