capture large test-case output using subprocess and pipe, instead of the abomination I was doing previously