Bug 1333255: use transforms to make docker image tasks, too; r=jonasfj

MozReview-Commit-ID: Eke3TjLbEfE
This commit is contained in:
Dustin J. Mitchell
2017-03-08 20:52:13 +00:00
parent a0095736a7
commit 28496e8561
8 changed files with 184 additions and 184 deletions

View File

@@ -14,7 +14,7 @@ from mozunit import main
from taskgraph.util.docker import INDEX_PREFIX
class TestTargetTasks(unittest.TestCase):
class TestTaskGraph(unittest.TestCase):
def test_from_json(self):
task = {
@@ -40,10 +40,12 @@ class TestTargetTasks(unittest.TestCase):
'task': {'task': 'def'},
}),
'b': DockerImageTask(kind='docker-image',
label='b',
attributes={},
task=task,
index_paths=index_paths),
task={
'label': 'b',
'attributes': {},
'task': task,
'index_paths': index_paths,
}),
}, graph=Graph(nodes={'a', 'b'}, edges=set()))
tasks, new_graph = TaskGraph.from_json(graph.to_json())