summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-07-14 01:59:25 -0400
committerEliot Horowitz <eliot@10gen.com>2012-07-14 01:59:25 -0400
commite84a8331d93ce3cd0484174ca8e7a2f5654d7b43 (patch)
tree14c21096084ed695c96389bddf535dc402c4bd72 /buildscripts
parentd70bbba4dfe90d5ad52aa838e4ed762b2d8f8a13 (diff)
downloadmongo-e84a8331d93ce3cd0484174ca8e7a2f5654d7b43.tar.gz
try to fix running unit tests on windows
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 9df156d6ff9..f460130be2c 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -353,7 +353,10 @@ def runTest(test):
if file_of_commands_mode:
# smoke.py was invoked like "--mode files --from-file foo",
# so don't try to interpret the test path too much
- argv = shlex.split(path)
+ if os.sys.platform == "win32":
+ argv = path
+ else:
+ argv = shlex.split(path)
path = argv[0]
# if the command is a python script, use the script name
if os.path.basename(path) in ('python', 'python.exe'):