Bug 1315690 - Limit cedar TC tests to Linux64 mochitest* and xpcshell only (fix lint errors) u=aselagea r=dustin

This commit is contained in:
Kim Moir 2016-11-08 09:36:19 -05:00
Родитель 35b93a38b7
Коммит 9e85c7c832
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -118,10 +118,11 @@ def target_tasks_cedar(full_task_graph, parameters):
def filter(task): def filter(task):
platform = task.attributes.get('build_platform') platform = task.attributes.get('build_platform')
# only select platforms # only select platforms
if platform not in ['linux64'] : if platform not in ['linux64']:
return False return False
if task.attributes.get('unittest_suite'): if task.attributes.get('unittest_suite'):
if not (task.attributes['unittest_suite'].startswith('mochitest') or 'xpcshell' in task.attributes['unittest_suite']): if not (task.attributes['unittest_suite'].startswith('mochitest')
or 'xpcshell' in task.attributes['unittest_suite']):
return False return False
return True return True
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)] return [l for l, t in full_task_graph.tasks.iteritems() if filter(t)]