testsuite: Rework handling of output sanitization
Previously un-cleaned artifacts were kept as reference output, making it difficult to tell what has changed and causing spurious changes in the version control history. Here we rework this, cleaning the output during acceptance. To accomplish this it was necessary to move to strict I/O to ensure the reference handle was closed before accept attempts to open the reference file.
Showing
- haddock-test/haddock-test.cabal 1 addition, 1 deletionhaddock-test/haddock-test.cabal
- haddock-test/src/Test/Haddock.hs 34 additions, 6 deletionshaddock-test/src/Test/Haddock.hs
- haddock-test/src/Test/Haddock/Config.hs 5 additions, 1 deletionhaddock-test/src/Test/Haddock/Config.hs
- hoogle-test/Main.hs 2 additions, 1 deletionhoogle-test/Main.hs
- html-test/Main.hs 2 additions, 1 deletionhtml-test/Main.hs
- hypsrc-test/Main.hs 2 additions, 1 deletionhypsrc-test/Main.hs
- latex-test/Main.hs 2 additions, 1 deletionlatex-test/Main.hs
Please register or sign in to comment