From 4a23c01992c322b8f4105c0b4c526c0493745174 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 8 Jul 2014 17:39:54 +0300 Subject: [PATCH] Make it possible to print all test output so it shows up in e.g. buildbot logs. --- run_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run_tests.py b/run_tests.py index 71411b347..40626132b 100755 --- a/run_tests.py +++ b/run_tests.py @@ -21,6 +21,7 @@ from environment import is_windows passing_tests = 0 failing_tests = 0 +print_debug = 'MESON_PRINT_TEST_OUTPUT' in os.environ test_build_dir = 'work area' install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir') @@ -102,6 +103,9 @@ def run_and_log(logfile, testdir, should_succeed=True): logfile.write('\n\n---\n\nstderr\n\n---\n') logfile.write(stde) logfile.write('\n\n---\n\n') + if print_debug: + print(stdo) + print(stde, file=sys.stderr) def run_test(testdir, should_succeed): global compile_commands