summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorDan Crosta <dcrosta@10gen.com>2012-07-05 13:40:58 -0400
committerDan Crosta <dcrosta@10gen.com>2012-07-05 13:41:12 -0400
commit09f05b4e72a82a856f125e14bed7df87d8b8d0af (patch)
tree4238eb8af935f99155ebbde976165f96d34a9af5 /buildscripts
parent20947d68f17948cbcba2d3daca106231a0551c6a (diff)
downloadmongo-09f05b4e72a82a856f125e14bed7df87d8b8d0af.tar.gz
SERVER-4237: use a default for --keyFile if only --auth was given to smoke.py
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index 306d799fc69..11efadfe6f2 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -604,6 +604,11 @@ def set_globals(options):
auth = options.auth
keyFile = options.keyFile
+ if auth and not keyFile:
+ # if only --auth was given to smoke.py, load the
+ # default keyFile from jstests/libs/authTestsKey
+ keyFile = os.path.join(mongo_repo, 'jstests', 'libs', 'authTestsKey')
+
def clear_failfile():
if os.path.exists(failfile):
os.remove(failfile)