summaryrefslogtreecommitdiff
path: root/buildscripts/smoke.py
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@10gen.com>2011-11-07 18:13:36 -0500
committerSpencer T Brody <spencer@10gen.com>2011-11-09 15:58:38 -0500
commitb063594e10b2024c7e39827c4409a0d82462a4e9 (patch)
tree5cac32f9c10b440c23f2dad06eb05b33235e7305 /buildscripts/smoke.py
parent0b418323fec8f3e23d77eb2f50036385831a6d0f (diff)
downloadmongo-b063594e10b2024c7e39827c4409a0d82462a4e9.tar.gz
Put check of current time directly before the call to the operation being timed.
Diffstat (limited to 'buildscripts/smoke.py')
-rwxr-xr-xbuildscripts/smoke.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 80ad2607381..ed46f63ecfe 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -282,7 +282,6 @@ def runTest(test):
sys.stderr.flush()
print " *******************************************"
print " Test : " + os.path.basename(path) + " ..."
- t1 = time.time()
# FIXME: we don't handle the case where the subprocess
# hangs... that's bad.
if argv[0].endswith( 'mongo' ) and not '--eval' in argv :
@@ -298,6 +297,7 @@ def runTest(test):
print argv
+ t1 = time.time()
r = call(argv, cwd=test_path)
t2 = time.time()
print " " + str((t2 - t1) * 1000) + "ms"