summaryrefslogtreecommitdiff
path: root/buildscripts/burn_in_tests.py
diff options
context:
space:
mode:
authorYves Duhem <yves.duhem@mongodb.com>2017-02-15 14:41:50 -0500
committerYves Duhem <yves.duhem@mongodb.com>2017-02-16 13:19:37 -0500
commitb5d7f1023b03cb6ac65f9fa62f65a77146776071 (patch)
tree6686b22e08d7dccba2e66ac4e2cd3b4f3534ae49 /buildscripts/burn_in_tests.py
parent3f44389ad1e2e620f88ab5aa8f44ead87d35dc5a (diff)
downloadmongo-b5d7f1023b03cb6ac65f9fa62f65a77146776071.tar.gz
SERVER-27879 Normalize tests paths retrieved from git
Diffstat (limited to 'buildscripts/burn_in_tests.py')
-rw-r--r--buildscripts/burn_in_tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildscripts/burn_in_tests.py b/buildscripts/burn_in_tests.py
index 2db62e4bac3..2279ae5ce4b 100644
--- a/buildscripts/burn_in_tests.py
+++ b/buildscripts/burn_in_tests.py
@@ -189,6 +189,7 @@ def find_changed_tests(branch_name, base_commit, max_revisions, buildvariant, ch
"""
Use git to find which files have changed in this patch.
TODO: This should be expanded to search for enterprise modules.
+ The returned file paths are in normalized form (see os.path.normpath(path)).
"""
changed_tests = []
@@ -232,7 +233,8 @@ def find_changed_tests(branch_name, base_commit, max_revisions, buildvariant, ch
if os.path.splitext(line)[1] != ".js" or not os.path.isfile(line):
continue
if "jstests" in line:
- changed_tests.append(line)
+ path = os.path.normpath(line)
+ changed_tests.append(path)
return changed_tests
@@ -262,6 +264,7 @@ def filter_tests(tests, exclude_tests):
"""
Excludes tests which have been blacklisted.
A test is in the tests list, i.e., ['jstests/core/a.js']
+ The tests paths must be in normalized form (see os.path.normpath(path)).
"""
if not exclude_tests or not tests: