bug 1442793 - tests artifact_prefix. r=bhearsum

MozReview-Commit-ID: 1KFGftPjG9Z

--HG--
extra : rebase_source : 8095e4e9999081cdc62b7bb21e7aa408daf65e7c
This commit is contained in:
Aki Sasaki 2018-03-07 13:05:10 -08:00
parent 6a1a7f74a1
commit 4f0c8ae4c9

View File

@ -28,6 +28,7 @@ from taskgraph.util.schema import (
optionally_keyed_by,
Schema,
)
from taskgraph.util.taskcluster import get_artifact_path
from mozbuild.schedules import INCLUSIVE_COMPONENTS
from voluptuous import (
@ -498,6 +499,17 @@ def setup_talos(config, tests):
yield test
@transforms.add
def handle_artifact_prefix(config, tests):
"""Handle translating `artifact_prefix` appropriately"""
for test in tests:
if test['build-attributes'].get('artifact_prefix'):
test.setdefault("attributes", {}).setdefault(
'artifact_prefix', test['build-attributes']['artifact_prefix']
)
yield test
@transforms.add
def set_target(config, tests):
for test in tests:
@ -515,7 +527,7 @@ def set_target(config, tests):
target = 'target.zip'
else:
target = 'target.tar.bz2'
test['mozharness']['build-artifact-name'] = 'public/build/' + target
test['mozharness']['build-artifact-name'] = get_artifact_path(test, target)
yield test