0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

windows support for smoke.py

This commit is contained in:
Eliot Horowitz 2010-12-22 16:41:52 -05:00
parent e81705343b
commit 48d3c2dff5

View File

@ -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