Added option tp print logfile for failing tests

This commit is contained in:
Adam Nelson 2015-11-17 21:28:57 -05:00
parent da76c2c8ff
commit a093d6fde8

View file

@ -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)