summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-07-28 15:53:50 -0400
committergregs <greg@10gen.com>2011-07-28 15:53:50 -0400
commit8ca09e494dbe144cbd38714b00b7d1f0bfdca845 (patch)
tree0b8cb0c9a0bc736456ced43b1057d73de277e3f1
parentaf93c5d8771461d85052bcda918179c8259a387c (diff)
downloadmongo-8ca09e494dbe144cbd38714b00b7d1f0bfdca845.tar.gz
Fix for smoke.py
-rwxr-xr-xbuildscripts/smoke.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 405d01c651b..383889753a6 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -280,10 +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 ) ) + '";' ]
+ if argv[0].endswith( 'mongo' ) :
+ 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()