Bug 1317189 - Fix --rebuild-talos for TC try jobs by checking the correct attribute. r=wcosta
MozReview-Commit-ID: K3WwZS9rVdj
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -72,17 +72,17 @@ def target_tasks_try_option_syntax(full_
for l in target_tasks_labels:
task = full_task_graph[l]
# If the developer wants test jobs to be rebuilt N times we add that value here
if options.trigger_tests > 1 and 'unittest_suite' in task.attributes:
task.attributes['task_duplicates'] = options.trigger_tests
task.attributes['profile'] = False
# If the developer wants test talos jobs to be rebuilt N times we add that value here
- if options.talos_trigger_tests > 1 and 'talos_suite' in task.attributes:
+ if options.talos_trigger_tests > 1 and task.attributes.get('unittest_suite') == 'talos':
task.attributes['task_duplicates'] = options.talos_trigger_tests
task.attributes['profile'] = options.profile
task.attributes.update(attributes)
# Add notifications here as well
if options.notifications:
for task in full_task_graph: