Bug 1365646: fix logic error in try syntax `-j` handling; r=gps
MozReview-Commit-ID: ApKmq9IYRtV
--- a/taskcluster/taskgraph/try_option_syntax.py
+++ b/taskcluster/taskgraph/try_option_syntax.py
@@ -582,17 +582,17 @@ class TryOptionSyntax(object):
return False
if 'only_chunks' in test and attr('test_chunk') not in test['only_chunks']:
return False
return True
job_try_name = attr('job_try_name')
if job_try_name:
if self.jobs is None or job_try_name in self.jobs:
- if self.platforms is None or attr('build_platform') not in self.platforms:
+ if self.platforms is None or attr('build_platform') in self.platforms:
return True
elif attr('kind') == 'test':
return match_test(self.unittests, 'unittest_try_name') \
or match_test(self.talos, 'talos_try_name')
elif attr('kind') in BUILD_KINDS:
if attr('build_type') not in self.build_types:
return False
elif self.platforms is None: