summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorMathew Robinson <mathew.robinson@mongodb.com>2020-01-03 19:31:25 +0000
committerevergreen <evergreen@mongodb.com>2020-01-03 19:31:25 +0000
commitac99f0b697e689dc950a22def4c882c7b3bea9e4 (patch)
treecfc966e33c996e500096a7c2458e8ef13b813f16 /buildscripts
parent852f3bbea50983b6b8e76a1418bd70d053e7ee09 (diff)
downloadmongo-ac99f0b697e689dc950a22def4c882c7b3bea9e4.tar.gz
SERVER-45217 Allow resmoke logging config outside resmoke config directory
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/resmokelib/parser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/parser.py b/buildscripts/resmokelib/parser.py
index daff8aab62a..9359782ba96 100644
--- a/buildscripts/resmokelib/parser.py
+++ b/buildscripts/resmokelib/parser.py
@@ -725,6 +725,11 @@ def _update_config_vars(values): # pylint: disable=too-many-statements,too-many
def _get_logging_config(pathname):
"""Read YAML configuration from 'pathname' how to log tests and fixtures."""
try:
+ # If the user provides a full valid path to a logging config
+ # we don't need to search LOGGER_DIR for the file.
+ if os.path.exists(pathname):
+ return utils.load_yaml_file(pathname).pop("logging")
+
root = os.path.abspath(_config.LOGGER_DIR)
files = os.listdir(root)
for filename in files: