From 3e060d5793fd459cd9dd8a9ecc244463fcb850f2 Mon Sep 17 00:00:00 2001 From: Bryan Herman Date: Tue, 8 Apr 2014 15:26:22 -0400 Subject: [PATCH] always save log file --- tests/run_nightly_tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/run_nightly_tests.py b/tests/run_nightly_tests.py index 2a27732eb4..6121856425 100755 --- a/tests/run_nightly_tests.py +++ b/tests/run_nightly_tests.py @@ -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')