haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 241 forks source link

testsuite: Print haddock stdout/stderr on failure #1591

Closed mpickering closed 4 months ago

mpickering commented 1 year ago

This greatly helps when there are problems running haddock tests on GHC's CI because otherwise we get the very unhelpful error message:

Failed to run Haddock on test package ''

Now instead we also get the actual problem in the log:

haddock: internal error: /private/var/lib/gitlab-runner/builds/7KQsmDei/0/ghc/ghc/_build/install/lib/ghc-9.7.20230404/lib/../../../share/doc/ghc-9.7.20230404/html/libraries/array-0.5.5.0-inplace/array-0.5.5.0-inplace.conf.haddock: withBinaryFile: does not exist (No such file or directory)
Kleidukos commented 4 months ago

Let me know if you feel it is still needed, and I'll migrate it to the GHC repo. :)