diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-07-08 17:39:54 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-07-08 17:39:54 +0300 |
commit | 4a23c01992c322b8f4105c0b4c526c0493745174 (patch) | |
tree | c42b87cf8182dde87b3da5f639551c8215cdec70 | |
parent | 23ec2b94f5c38eb46a51441dbd36d1cb2d041c8b (diff) | |
download | meson-4a23c01992c322b8f4105c0b4c526c0493745174.zip meson-4a23c01992c322b8f4105c0b4c526c0493745174.tar.gz meson-4a23c01992c322b8f4105c0b4c526c0493745174.tar.bz2 |
Make it possible to print all test output so it shows up in e.g. buildbot logs.
-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 |