summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorGeorge Wangensteen <george.wangensteen@mongodb.com>2023-01-26 03:30:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-26 04:05:28 +0000
commit31cf5012e5c5d5ef10ed400fe0e04bf83763bd6e (patch)
tree70c9808966b2c742704c17e98295c903edd950d5 /buildscripts
parentb37a9615b80702f6a5ef1fb499f9e6ed1e81170f (diff)
downloadmongo-31cf5012e5c5d5ef10ed400fe0e04bf83763bd6e.tar.gz
SERVER-73162 Make resmoke absolutize dataPath and dataDir when configuring the mongo shell
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/resmokelib/testing/testcases/jstest.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/buildscripts/resmokelib/testing/testcases/jstest.py b/buildscripts/resmokelib/testing/testcases/jstest.py
index e9d451847f4..706373a5ab5 100644
--- a/buildscripts/resmokelib/testing/testcases/jstest.py
+++ b/buildscripts/resmokelib/testing/testcases/jstest.py
@@ -52,7 +52,7 @@ class _SingleJSTestCase(interface.ProcessTestCase):
# dataPath property is the dataDir property with a trailing slash.
data_path = os.path.join(data_dir, "")
else:
- data_path = global_vars["MongoRunner.dataPath"]
+ data_path = os.path.join(os.path.abspath(global_vars["MongoRunner.dataPath"]), "")
global_vars["MongoRunner.dataDir"] = data_dir
global_vars["MongoRunner.dataPath"] = data_path
@@ -104,8 +104,9 @@ class _SingleJSTestCase(interface.ProcessTestCase):
data_dir_prefix = utils.default_if_none(config.DBPATH_PREFIX,
global_vars.get("MongoRunner.dataDir"))
data_dir_prefix = utils.default_if_none(data_dir_prefix, config.DEFAULT_DBPATH_PREFIX)
- return os.path.join(data_dir_prefix, "job%d" % self.fixture.job_num,
- config.MONGO_RUNNER_SUBDIR)
+ return os.path.abspath(
+ os.path.join(data_dir_prefix, "job%d" % self.fixture.job_num,
+ config.MONGO_RUNNER_SUBDIR))
def _make_process(self):
return core.programs.mongo_shell_program(