Bug 1515245 - Make sure windows paths are supported for wpt via generic 'mach test' r=jgraham

Differential Revision: https://phabricator.services.mozilla.com/D15497

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Wes Kocher 2018-12-30 23:42:06 +00:00
Родитель 9f5727ff2a
Коммит fba1da92d1
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -417,6 +417,9 @@ class TestMetadata(object):
candidate_paths |= set(self._tests_by_path.keys()) candidate_paths |= set(self._tests_by_path.keys())
continue continue
if os.path.sep != "/":
path = path.replace("/", os.path.sep)
if '*' in path: if '*' in path:
candidate_paths |= {p for p in self._tests_by_path candidate_paths |= {p for p in self._tests_by_path
if mozpath.match(p, path)} if mozpath.match(p, path)}