summaryrefslogtreecommitdiff
path: root/buildscripts/buildlogger.py
diff options
context:
space:
mode:
authorDan Crosta <dcrosta@10gen.com>2012-04-02 14:10:21 -0400
committerDan Crosta <dcrosta@10gen.com>2012-04-02 14:10:21 -0400
commitc6dc2074a1b1fa5755070964f0e77c3cd48d00b5 (patch)
tree8b785c3f8a0d4c174cb635ccf0a5fb1ba211d76c /buildscripts/buildlogger.py
parentad977248699234e4a16f247a775c3af2865eb4c9 (diff)
downloadmongo-c6dc2074a1b1fa5755070964f0e77c3cd48d00b5.tar.gz
BUILDBOT-108: note start and end of test in buildlogger
Diffstat (limited to 'buildscripts/buildlogger.py')
-rw-r--r--buildscripts/buildlogger.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/buildscripts/buildlogger.py b/buildscripts/buildlogger.py
index d5fad906be0..2de39fdc5db 100644
--- a/buildscripts/buildlogger.py
+++ b/buildscripts/buildlogger.py
@@ -203,11 +203,14 @@ def wrap_test(command):
if not test_id:
return run_and_echo(command)
- buf = []
+ start_time = time.time()
+ buf = [(start_time, '*** beginning test %r ***' % test_filename)]
def callback(line):
- if line is None and buf:
+ if line is None:
# callback is called with None when the
# command is finished
+ end_time = time.time()
+ buf.append((end_time, '*** finished test %r in %f seconds ***' % (test_filename, end_time - start_time)))
append_test_logs(build_id, test_id, buf)
buf.append((time.time(), line))