From adb141a36c1d2cdede6bd2cdf2bdb8deb36ea7d5 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 23 Mar 2013 01:19:56 +0200 Subject: Store test run time in log files. --- meson_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson_test.py b/meson_test.py index fc22a67..e49c31b 100755 --- a/meson_test.py +++ b/meson_test.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys, subprocess, time +import sys, subprocess, time, datetime from optparse import OptionParser parser = OptionParser() @@ -38,7 +38,7 @@ def run_tests(options, datafilename): wrap = [options.wrapper] logfilename = logfile_base + '-' + options.wrapper.replace(' ', '_') + '.txt' logfile = open(logfilename, 'w') - logfile.write('Log file for tests.\n\n') + logfile.write('Log of Meson test suite run on %s.\n\n' % datetime.datetime.now().isoformat()) for line in open(datafilename, 'r'): line = line.strip() if line == '': -- cgit v1.1