Bug 1638945 - Don't optimize away tasks without a 'build_type' attribute in the 'platform-debug' strategy. r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D75982
This commit is contained in:
Marco Castelluccio 2020-05-19 15:32:52 +00:00
Родитель 66114f4029
Коммит 3ce7e8085d
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -112,7 +112,7 @@ class SkipUnlessDebug(OptimizationStrategy):
"""Only run debug platforms."""
def should_remove_task(self, task, params, arg):
return not (task.attributes.get('build_type') == "debug")
return "build_type" in task.attributes and task.attributes["build_type"] != "debug"
@register_strategy("platform-disperse")