Enable capturing stdout and stderr from tests

To aid in debugging, turn on capturing stdout and stderr from the
unit tests. Comes in handy when you need to throw in a print()
statement to debug a test.

Change-Id: I126fb025068644722baf966dfc8f35b0fd9b5003
This commit is contained in:
David Shrewsbury 2013-11-11 10:51:33 -05:00
parent 3c5081cd3f
commit e5da54e0c4

View File

@ -1,4 +1,4 @@
[DEFAULT]
test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./ $LISTOPT $IDOPTION
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} ${PYTHON:-python} -m subunit.run discover -t ./ ./ $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list