mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Added option tp print logfile for failing tests
This commit is contained in:
parent
da76c2c8ff
commit
a093d6fde8
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue