summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2017-09-15 10:10:56 -0400
committerHenrik Edin <henrik.edin@mongodb.com>2017-09-22 17:16:02 -0400
commitc79b69d1ead95ba93e33ea4e1859119752d42f7f (patch)
treedffda7a83a7c5ea63124b47564ea38577b135677 /buildscripts/resmokelib
parent12eb869725f4cefd94f3b4a7e1292f82691ad301 (diff)
downloadmongo-c79b69d1ead95ba93e33ea4e1859119752d42f7f.tar.gz
SERVER-31095 Adding an evergreen builder to test the legacy transport layer. Fix so resmoke.py can passthrough the --transportLayer option.
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r--buildscripts/resmokelib/config.py4
-rw-r--r--buildscripts/resmokelib/core/programs.py2
-rw-r--r--buildscripts/resmokelib/parser.py5
3 files changed, 11 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/config.py b/buildscripts/resmokelib/config.py
index d7d00532ce7..456926adafb 100644
--- a/buildscripts/resmokelib/config.py
+++ b/buildscripts/resmokelib/config.py
@@ -64,6 +64,7 @@ DEFAULTS = {
"storageEngineCacheSizeGB": None,
"tagFile": None,
"taskId": None,
+ "transportLayer": None,
"wiredTigerCollectionConfigString": None,
"wiredTigerEngineConfigString": None,
"wiredTigerIndexConfigString": None
@@ -179,6 +180,9 @@ TAG_FILE = None
# tests.
TASK_ID = None
+# IF set, then mongod/mongos's started by resmoke.py will use the specified transport layer
+TRANSPORT_LAYER = None
+
# If set, then all mongod's started by resmoke.py and by the mongo shell will use the specified
# WiredTiger collection configuration settings.
WT_COLL_CONFIG = None
diff --git a/buildscripts/resmokelib/core/programs.py b/buildscripts/resmokelib/core/programs.py
index 379ec111d88..1a0257d7b6b 100644
--- a/buildscripts/resmokelib/core/programs.py
+++ b/buildscripts/resmokelib/core/programs.py
@@ -58,6 +58,7 @@ def mongod_program(logger, executable=None, process_kwargs=None, **kwargs):
"nopreallocj": config.NO_PREALLOC_JOURNAL,
"serviceExecutor": config.SERVICE_EXECUTOR,
"storageEngine": config.STORAGE_ENGINE,
+ "transportLayer": config.TRANSPORT_LAYER,
"wiredTigerCollectionConfigString": config.WT_COLL_CONFIG,
"wiredTigerEngineConfigString": config.WT_ENGINE_CONFIG,
"wiredTigerIndexConfigString": config.WT_INDEX_CONFIG,
@@ -156,6 +157,7 @@ def mongo_shell_program(logger, executable=None, connection_string=None, filenam
"storageEngine": (config.STORAGE_ENGINE, ""),
"storageEngineCacheSizeGB": (config.STORAGE_ENGINE_CACHE_SIZE, ""),
"testName": (os.path.splitext(os.path.basename(filename))[0], ""),
+ "transportLayer": (config.TRANSPORT_LAYER, ""),
"wiredTigerCollectionConfigString": (config.WT_COLL_CONFIG, ""),
"wiredTigerEngineConfigString": (config.WT_ENGINE_CONFIG, ""),
"wiredTigerIndexConfigString": (config.WT_INDEX_CONFIG, ""),
diff --git a/buildscripts/resmokelib/parser.py b/buildscripts/resmokelib/parser.py
index 599623431a7..eb8b7ef407d 100644
--- a/buildscripts/resmokelib/parser.py
+++ b/buildscripts/resmokelib/parser.py
@@ -50,6 +50,7 @@ DEST_TO_CONFIG = {
"storage_engine_cache_size": "storageEngineCacheSizeGB",
"tag_file": "tagFile",
"task_id": "taskId",
+ "transport_layer": "transportLayer",
"wt_coll_config": "wiredTigerCollectionConfigString",
"wt_engine_config": "wiredTigerEngineConfigString",
"wt_index_config": "wiredTigerIndexConfigString"
@@ -194,6 +195,9 @@ def parse_command_line():
parser.add_option("--serviceExecutor", dest="service_executor", metavar="EXECUTOR",
help="The service executor used by jstests")
+ parser.add_option("--transportLayer", dest="transport_layer", metavar="TRANSPORT",
+ help="The transport layer used by jstests")
+
parser.add_option("--shellReadMode", type="choice", action="store", dest="shell_read_mode",
choices=("commands", "compatibility", "legacy"), metavar="READ_MODE",
help="The read mode used by the mongo shell.")
@@ -319,6 +323,7 @@ def update_config_vars(values):
_config.STORAGE_ENGINE_CACHE_SIZE = config.pop("storageEngineCacheSizeGB")
_config.TAG_FILE = config.pop("tagFile")
_config.TASK_ID = config.pop("taskId")
+ _config.TRANSPORT_LAYER = config.pop("transportLayer")
_config.WT_COLL_CONFIG = config.pop("wiredTigerCollectionConfigString")
_config.WT_ENGINE_CONFIG = config.pop("wiredTigerEngineConfigString")
_config.WT_INDEX_CONFIG = config.pop("wiredTigerIndexConfigString")