Bug 1515245 - Make sure windows paths are supported for wpt via generic 'mach test' r=jgraham
☠☠ backed out by 251b7f4419f1 ☠ ☠
authorWes Kocher <wkocher@mozilla.com>
Sun, 30 Dec 2018 19:19:19 +0000
changeset 509263 1923d02bb66df7e1aeeebc78682816cf921c4a00
parent 509262 bf82f8b197f3c2cc83ade5c8c7c27d25bc003c3e
child 509264 251b7f4419f1289c12301ef1e7d1eb8cb7d01caf
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1515245
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1515245 - Make sure windows paths are supported for wpt via generic 'mach test' r=jgraham Differential Revision: https://phabricator.services.mozilla.com/D15497
testing/mozbase/moztest/moztest/resolve.py
--- a/testing/mozbase/moztest/moztest/resolve.py
+++ b/testing/mozbase/moztest/moztest/resolve.py
@@ -408,16 +408,19 @@ class TestMetadata(object):
             paths = [None]
 
         candidate_paths = set()
 
         if flavor in (None, 'web-platform-tests') and any(self.is_wpt_path(p) for p in paths):
             self.add_wpt_manifest_data()
 
         for path in sorted(paths):
+            if os.path.sep != "/":
+                path = path.replace("/", os.path.sep)
+
             if path is None:
                 candidate_paths |= set(self._tests_by_path.keys())
                 continue
 
             if '*' in path:
                 candidate_paths |= {p for p in self._tests_by_path
                                     if mozpath.match(p, path)}
                 continue