summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorMike Dirolf <mike@10gen.com>2010-07-28 15:08:25 -0400
committerMike Dirolf <mike@10gen.com>2010-07-28 15:08:25 -0400
commit44aadcec4af2af6100d3f9897fa424b56c7aa40c (patch)
tree071cc683d87cc6cd467da7dd67fafcd55026eb94 /buildscripts
parent684486e7e0ada96a56ec601aa0b5ca24aacffc9e (diff)
downloadmongo-44aadcec4af2af6100d3f9897fa424b56c7aa40c.tar.gz
minor: use testPath as dirname if it's present
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index c539a677990..0023226bd3c 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -271,7 +271,8 @@ def runTest(test):
elif os.path.basename(path) == 'mongos':
argv=[path, "--test"]
else:
- argv=[path, "--port", mongodPort]
+ argv=[testPath and os.path.abspath(os.path.join(testPath, path)) or path,
+ "--port", mongodPort]
else:
raise Bug("fell off in extenstion case: %s" % path)
print " *******************************************"