summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-12-22 16:41:52 -0500
committerEliot Horowitz <eliot@10gen.com>2010-12-22 16:42:02 -0500
commit48d3c2dff552f42a8b29a81490102638f6af5d22 (patch)
treeacfc182c0558173c7d7e2419ab5595479edec5ae /buildscripts
parente81705343be3e972078ebf6e1578f892518a6e8d (diff)
downloadmongo-48d3c2dff552f42a8b29a81490102638f6af5d22.tar.gz
windows support for smoke.py
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 52f1be5698f..bcfa8570ae0 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -407,6 +407,10 @@ def expand_suites(suites):
return tests
+def add_exe(e):
+ if os.sys.platform.startswith( "win" ) and not e.endswith( ".exe" ):
+ e += ".exe"
+ return e
def main():
global mongod_executable, mongod_port, shell_executable, continue_on_failure, small_oplog, smoke_db_prefix, test_path
@@ -442,17 +446,15 @@ def main():
test_path = options.test_path
- mongod_executable = options.mongod_executable
+ mongod_executable = add_exe(options.mongod_executable)
if not os.path.exists(mongod_executable):
- print "ERROR: no mongod found in this directory."
- return
+ raise Exception("no mongod found in this directory.")
mongod_port = options.mongod_port
- shell_executable = options.shell_executable
+ shell_executable = add_exe( options.shell_executable )
if not os.path.exists(shell_executable):
- print "ERROR: no mongo shell found in this directory."
- return
+ raise Exception("no mongo shell found in this directory.")
continue_on_failure = options.continue_on_failure
smoke_db_prefix = options.smoke_db_prefix