mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
always save log file
This commit is contained in:
parent
66107d89a0
commit
3e060d5793
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ from __future__ import print_function
|
|||
import os
|
||||
import shutil
|
||||
import re
|
||||
import glob
|
||||
from subprocess import call
|
||||
from collections import OrderedDict
|
||||
from optparse import OptionParser
|
||||
|
|
@ -279,6 +280,10 @@ for key in iter(tests):
|
|||
# Run test
|
||||
test.run_ctest()
|
||||
|
||||
# Copy over log file
|
||||
logfile = glob.glob('build/Testing/Temporary/LastTest*.log')
|
||||
shutil.copy(logfile[0], 'LastTest_{0}.log'.format(test.name))
|
||||
|
||||
# Clear build directory
|
||||
shutil.rmtree('build', ignore_errors=True)
|
||||
os.remove('ctestscript.run')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue