# HG changeset patch # User Peter Arrenbrecht # Date 1283932211 -7200 # Node ID 073132fc27f171f8c5b780583aaead951671e84f # Parent d424bd1ac647f3cf0fa1e37ad6182837ad2fde7c tests: add --show-stdout option to run.py diff --git a/tests/run.py b/tests/run.py --- a/tests/run.py +++ b/tests/run.py @@ -60,6 +60,9 @@ if __name__ == '__main__': choices=["swig", "subvertpy"], help="test using the specified bindings (swig or " "subvertpy)") + parser.add_option("", "--show-stdout", + dest="showstdout", action="store_true", default=False, + help="show stdout (hidden by default)") (options, args) = parser.parse_args() @@ -82,8 +85,9 @@ if __name__ == '__main__': test_util.TestBase # silence output when running outside nose - import tempfile - sys.stdout = tempfile.TemporaryFile() + if not options.showstdout: + import tempfile + sys.stdout = tempfile.TemporaryFile() all = tests()