add option to disable capturing stderr in pytest

This commit is contained in:
Stuart Young
2017-10-31 14:30:07 -04:00
parent e26f0ed0e8
commit 77ed0ed46c
3 changed files with 19 additions and 5 deletions

View File

@@ -111,13 +111,13 @@ case "$TEST_SUITE" in
"lms-unit")
case "$SHARD" in
"all")
paver test_system -s lms $PAVER_ARGS $PARALLEL 2> lms-tests.log
paver test_system -s lms --disable_capture $PAVER_ARGS $PARALLEL 2> lms-tests.log
;;
[1-3])
paver test_system -s lms --eval-attr="shard==$SHARD" $PAVER_ARGS $PARALLEL 2> lms-tests.$SHARD.log
paver test_system -s lms --disable_capture --eval-attr="shard==$SHARD" $PAVER_ARGS $PARALLEL 2> lms-tests.$SHARD.log
;;
4|"noshard")
paver test_system -s lms --eval-attr='not shard' $PAVER_ARGS $PARALLEL 2> lms-tests.4.log
paver test_system -s lms --disable_capture --eval-attr='not shard' $PAVER_ARGS $PARALLEL 2> lms-tests.4.log
;;
*)
# If no shard is specified, rather than running all tests, create an empty xunit file. This is a
@@ -131,11 +131,11 @@ case "$TEST_SUITE" in
;;
"cms-unit")
paver test_system -s cms $PAVER_ARGS 2> cms-tests.log
paver test_system -s cms --disable_capture $PAVER_ARGS 2> cms-tests.log
;;
"commonlib-unit")
paver test_lib $PAVER_ARGS 2> common-tests.log
paver test_lib --disable_capture $PAVER_ARGS 2> common-tests.log
;;
"js-unit")