testsuite driver: don't append to existing output files
authorReid Barton <rwbarton@gmail.com>
Tue, 10 Jan 2017 19:29:11 +0000 (14:29 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 10 Jan 2017 19:29:18 +0000 (14:29 -0500)
commit35a5b60390f2a400d06a2209eb03b7fd6ccffdab
tree7a0fd40f53654a8755dae8ae560e05f6245e1055
parentc2bd62ed62d2fae126819136d428989a7b4ddc79
testsuite driver: don't append to existing output files

If you happen to have a T1234.run.stdout file lying aroud (probably
from before the move to running tests in temporary subdirectories)
it gets symlinked into the T1234.run directory since its name starts
with T1234; and then program output gets appended to the existing
file (through the symlink). We should open the file for writing
instead, to replace the symlink with a new file.

Test Plan: tested locally, + harbormaster

Reviewers: austin, Phyx, bgamari

Reviewed By: Phyx, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2946
testsuite/driver/testlib.py