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

minor: use testPath as dirname if it's present

This commit is contained in:
Mike Dirolf 2010-07-28 15:08:25 -04:00
parent 684486e7e0
commit 44aadcec4a

View File

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