aboutsummaryrefslogtreecommitdiff
path: root/html-test/run.hs
diff options
context:
space:
mode:
authorŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-04 14:44:01 +0200
committerŁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-08-22 23:40:26 +0200
commitc96ac677097f3500ca923a5b3a32818f8f75a5be (patch)
tree92c2817e728f045d3c45c0f50f084e85327392a4 /html-test/run.hs
parent076e04cd4c049ddfad6feed242e2c1024d5db101 (diff)
Fix bug with test runner not producing any output files.
Diffstat (limited to 'html-test/run.hs')
-rwxr-xr-xhtml-test/run.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/html-test/run.hs b/html-test/run.hs
index 62e8bc23..5678a877 100755
--- a/html-test/run.hs
+++ b/html-test/run.hs
@@ -61,7 +61,7 @@ checkOutput _ = return () -- TODO.
runHaddock :: Config -> IO ()
runHaddock (Config { .. }) = do
handle <- runProcess' cfgHaddockPath $ processConfig
- { pcArgs = cfgHaddockArgs
+ { pcArgs = cfgHaddockArgs ++ cfgFiles
, pcEnv = Just $ cfgEnv
}
waitForSuccess "Failed to run Haddock on specified test files" handle
@@ -100,6 +100,7 @@ loadConfig flags files = do
[ pure ["--no-warnings"]
, pure ["--odir=" ++ outDir]
, pure ["--pretty-html"]
+ , pure ["--html"]
, pure ["--optghc=-w"]
, pure $ flagsHaddockOptions flags
, baseDependencies cfgGhcPath