mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
bug 1442793 - tests artifact_prefix. r=bhearsum
MozReview-Commit-ID: 1KFGftPjG9Z --HG-- extra : rebase_source : 8095e4e9999081cdc62b7bb21e7aa408daf65e7c
This commit is contained in:
parent
6a1a7f74a1
commit
4f0c8ae4c9
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user