Bug 1403342 - use try_job transform for source tests too; r=ahal

Just a minor refactor

MozReview-Commit-ID: 2YdOtO2sGEc

--HG--
extra : rebase_source : 04aa7cecf9de2e7bac01744f9c8b25805e77a013
This commit is contained in:
Dustin J. Mitchell 2017-10-03 21:09:22 +00:00
parent 301ac65a16
commit 43bb5cba13
2 changed files with 1 additions and 2 deletions

View File

@ -5,6 +5,7 @@
loader: taskgraph.loader.transform:loader
transforms:
- taskgraph.transforms.try_job:transforms
- taskgraph.transforms.source_test:transforms
- taskgraph.transforms.job:transforms
- taskgraph.transforms.task:transforms

View File

@ -71,8 +71,6 @@ def validate(config, jobs):
@transforms.add
def set_job_name(config, jobs):
for job in jobs:
job.setdefault('attributes', {}).setdefault('job_try_name', job['name'])
if 'job-from' in job and job['job-from'] != 'kind.yml':
from_name = os.path.splitext(job['job-from'])[0]
job['name'] = '{}-{}'.format(from_name, job['name'])