Bug 995972 - Make mochitest-devtools mach command work with single folders or files. r=jmaher

This commit is contained in:
Michael Ratcliffe 2014-04-15 10:35:00 +01:00
Родитель 9433b45e46
Коммит c7ef84b96d
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -90,7 +90,9 @@ class TestMetadata(object):
"""
def fltr(tests):
for test in tests:
if flavor and test.get('flavor') != flavor:
if flavor:
if (flavor == 'devtools' and test.get('flavor') != 'browser-chrome') or \
(flavor != 'devtools' and test.get('flavor') != flavor):
continue
if under_path \