diff options
-rwxr-xr-x | run_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py index 71411b3..4062613 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 |