Send workunit output to stderr during tests

Review Request #2108 - Created April 22, 2015 and submitted

Information
Eric Ayers
pants
zundel/workunit-output-to-stderr-in-tests
1442
06ebcbb...
Reviewers
pants-reviews
benjyw, dturner-tw, stuhood

When running a test, DummyWorkunit swallowed all tool output to stdout and stderr. This made it difficult to diagnost test failures.
This change writes all of that output to stderr instead, and the python test runner will only display the output to the console
if a test fails.

CI pass @ https://travis-ci.org/pantsbuild/pants/builds/59591166

Ran broken test_pytest_run.py with this change and I can now see the output that is causing the tests to fail.

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Eric Ayers
Nick Howard (Twitter)
Benjy Weinberger
Eric Ayers
Benjy Weinberger
Eric Ayers
Review request changed

Status: Closed (submitted)

Change Summary:

Thanks Nick & Benjy. Commit 7b7b851

Loading...