From a093d6fde8e4db4615f780356e9a9f4ea245b44b Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Tue, 17 Nov 2015 21:28:57 -0500 Subject: [PATCH] Added option tp print logfile for failing tests --- tests/run_tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/run_tests.py b/tests/run_tests.py index 338732c14..e62629401 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -470,6 +470,7 @@ for key in iter(tests): logfilename = os.path.splitext(logfilename)[0] logfilename = logfilename + '_{0}.log'.format(test.name) shutil.copy(logfile[0], logfilename) + with open(logfilename) as fh: print(fh.read()) # Clear build directory and remove binary and hdf5 files shutil.rmtree('build', ignore_errors=True)