keep timestamp on logfile name

This commit is contained in:
Bryan Herman 2014-04-08 15:44:26 -04:00
parent 0ac10fbc1e
commit b7dcf9f1b3

View file

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