diff options
author | Mathew Robinson <mathew.robinson@mongodb.com> | 2020-01-03 19:31:25 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-03 19:31:25 +0000 |
commit | ac99f0b697e689dc950a22def4c882c7b3bea9e4 (patch) | |
tree | cfc966e33c996e500096a7c2458e8ef13b813f16 /buildscripts | |
parent | 852f3bbea50983b6b8e76a1418bd70d053e7ee09 (diff) | |
download | mongo-ac99f0b697e689dc950a22def4c882c7b3bea9e4.tar.gz |
SERVER-45217 Allow resmoke logging config outside resmoke config directory
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/resmokelib/parser.py | 5 |
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: |