From b7dcf9f1b3ebc7829b8314f89ad0559d4fcda0f6 Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Tue, 8 Apr 2014 15:44:26 -0400 Subject: [PATCH] keep timestamp on logfile name --- tests/run_nightly_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/run_nightly_tests.py b/tests/run_nightly_tests.py index 7fe8b8199f..bff745b815 100755 --- a/tests/run_nightly_tests.py +++ b/tests/run_nightly_tests.py @@ -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)