Color output is wreaking havoc on test results
authorTamar Christina <tamar@zhox.com>
Mon, 5 Dec 2016 20:51:11 +0000 (20:51 +0000)
committerTamar Christina <tamar@zhox.com>
Mon, 5 Dec 2016 20:51:11 +0000 (20:51 +0000)
commit847d229346431483b99adcff12e46c7bf6af15da
tree578609c4ea091c71eb83b2d33ba80a3dc1d1ac63
parent3e3f7c21a64758c671192c63a741ecc4a5a08831
Color output is wreaking havoc on test results

Summary:
D2716 introduced colors into the output of GHC.
These color ourputs are done using escape characters output
to the terminal.

These however are wreaking havoc on the testsuite output as now
no stderr with a warning or error will match anymore.

Instead of accepting the new codes as expected values instead I
turn them off. So the testsuite is consistent on platforms/terminals we
don't support colors on.

Test Plan:
any test that outputs colors. e.g.

make test TEST=T9576

Reviewers: austin, Rufflewind, bgamari

Subscribers: thomie, #ghc_windows_task_force

Differential Revision: https://phabricator.haskell.org/D2787

GHC Trac Issues: #8809
testsuite/mk/ghc-config.hs
testsuite/mk/test.mk