summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-07-19 14:18:37 -0400
committergregs <greg@10gen.com>2011-07-28 14:25:27 -0400
commitd6cce7e211a45dbb1962c8c750f9d98e35bae897 (patch)
tree28b5df896373cadc64b13d65691189aaff3270bc /buildscripts
parentd676de2512bf7b5dbcb8ebb4c9ea3d6ae549b426 (diff)
downloadmongo-d6cce7e211a45dbb1962c8c750f9d98e35bae897.tar.gz
some test case fixes for SERVER-1726
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 128c01cc287..405d01c651b 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -280,6 +280,11 @@ def runTest(test):
t1 = time.time()
# FIXME: we don't handle the case where the subprocess
# hangs... that's bad.
+ argv = argv + [ '--eval', 'TestData = new Object();' +
+ 'TestData.testPath = "' + path + '";' +
+ 'TestData.testFile = "' + os.path.basename( path ) + '";' +
+ 'TestData.testName = "' + re.sub( ".js$", "", os.path.basename( path ) ) + '";' ]
+ print argv
r = call(argv, cwd=test_path)
t2 = time.time()
print " " + str((t2 - t1) * 1000) + "ms"