diff options
author | gregs <greg@10gen.com> | 2011-07-28 15:53:50 -0400 |
---|---|---|
committer | gregs <greg@10gen.com> | 2011-07-28 15:53:50 -0400 |
commit | 8ca09e494dbe144cbd38714b00b7d1f0bfdca845 (patch) | |
tree | 0b8cb0c9a0bc736456ced43b1057d73de277e3f1 | |
parent | af93c5d8771461d85052bcda918179c8259a387c (diff) | |
download | mongo-8ca09e494dbe144cbd38714b00b7d1f0bfdca845.tar.gz |
Fix for smoke.py
-rwxr-xr-x | buildscripts/smoke.py | 9 |
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() |