diff options
author | Arun Banala <arun.banala@mongodb.com> | 2021-09-22 11:00:57 +0100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-22 11:17:54 +0000 |
commit | 7ff8d8762cd47376e16f67e712a8f69d95d3689d (patch) | |
tree | 4736f379776b0950de2df1d56f3ade3d901fa757 | |
parent | 0d792cf4f9d003b02110f249dad767c29a7b0621 (diff) | |
download | mongo-7ff8d8762cd47376e16f67e712a8f69d95d3689d.tar.gz |
SERVER-57567 Fix bug to consider tests running on Windows
-rw-r--r-- | buildscripts/resmokelib/testing/testcases/jstest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/testing/testcases/jstest.py b/buildscripts/resmokelib/testing/testcases/jstest.py index 86255838414..e8a1efdde1d 100644 --- a/buildscripts/resmokelib/testing/testcases/jstest.py +++ b/buildscripts/resmokelib/testing/testcases/jstest.py @@ -62,7 +62,11 @@ class _SingleJSTestCase(interface.ProcessTestCase): test_data["peerPids"] = self.fixture.pids() test_data["alwaysUseLogFiles"] = config.ALWAYS_USE_LOG_FILES test_data["failIfUnterminatedProcesses"] = True - test_data["implicitlyShardOnCreateCollectionOnly"] = "/timeseries/" in self.js_filename + + # The tests in 'timeseries' directory need to use a different logic for implicity sharding + # the collection. Make sure that we consider both unix and windows directory structures. + test_data["implicitlyShardOnCreateCollectionOnly"] = "/timeseries/" in self.js_filename or \ + "\\timeseries\\" in self.js_filename global_vars["TestData"] = test_data self.shell_options["global_vars"] = global_vars |