summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/testing/testcases/jstest.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/testing/testcases/jstest.py')
-rw-r--r--buildscripts/resmokelib/testing/testcases/jstest.py6
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