Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

testsuite: Print haddock stdout/stderr on failure #1591

Closed
wants to merge 1 commit into from

Conversation

mpickering
Copy link
Collaborator

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)

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
Copy link
Member

Kleidukos commented May 18, 2024

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

@Kleidukos Kleidukos closed this May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants