diff options
Diffstat (limited to 'buildscripts/resmokelib/parser.py')
-rw-r--r-- | buildscripts/resmokelib/parser.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/buildscripts/resmokelib/parser.py b/buildscripts/resmokelib/parser.py index 6093d0f5a2c..a5f5dc88601 100644 --- a/buildscripts/resmokelib/parser.py +++ b/buildscripts/resmokelib/parser.py @@ -627,9 +627,10 @@ def _update_config_vars(values): # pylint: disable=too-many-statements,too-many _config.INSTALL_DIR = config.pop("install_dir") if _config.INSTALL_DIR is not None: - # Inject INSTALL_DIR into the $PATH so RunProgram in the shell - # helpers can find the installed binaries. - os.environ['PATH'] = "{}:{}".format(_expand_user(_config.INSTALL_DIR), os.environ['PATH']) + # Normalize the path so that on Windows dist-test/bin + # translates to .\dist-test\bin then absolutify it since the + # Windows PATH variable requires absolute paths. + _config.INSTALL_DIR = os.path.abspath(_expand_user(os.path.normpath(_config.INSTALL_DIR))) for binary in ["mongo", "mongod", "mongos", "dbtest"]: keyname = binary + "_executable" |