clean up concurrent output of tests

Using concurrent-output this is easy. Just have to check if tasty has
color enabled, and propagate it into the worker processes, some of which
will be run without a controlling console.

Also added a call to installSignalHandlers; I noticed that interrupting
the test suite could leave the console in a bad state and this fixes
that.

The ansi-terminal dependency is free, since tasty also depends on it.

Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
Joey Hess 2022-03-16 12:37:09 -04:00
parent ca711f1741
commit d3b7c6705c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 15 additions and 5 deletions

1
debian/control vendored
View file

@ -70,6 +70,7 @@ Build-Depends:
libghc-tasty-hunit-dev,
libghc-tasty-quickcheck-dev,
libghc-tasty-rerun-dev,
libghc-ansi-terminal-dev,
libghc-optparse-applicative-dev (>= 0.11.0),
libghc-torrent-dev,
libghc-concurrent-output-dev,