mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
keep timestamp on logfile name
This commit is contained in:
parent
0ac10fbc1e
commit
b7dcf9f1b3
1 changed files with 4 additions and 1 deletions
|
|
@ -282,7 +282,10 @@ for key in iter(tests):
|
|||
|
||||
# Copy over log file
|
||||
logfile = glob.glob('build/Testing/Temporary/LastTest_*.log')
|
||||
shutil.copy(logfile[0], 'LastTest_{0}.log'.format(test.name))
|
||||
logfilename = os.path.split(logfile[0])[1]
|
||||
logfilename = os.path.splitext(logfilename)[0]
|
||||
logfilename = logfilename + '_{0}.log'.format(test.name)
|
||||
shutil.copy(logfile[0], logfilename)
|
||||
|
||||
# Clear build directory
|
||||
shutil.rmtree('build', ignore_errors=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue