Decision task: print IDs of tasks scheduled or found in the index

This commit is contained in:
Simon Sapin 2018-12-13 11:38:48 +01:00
parent 8de59c15b5
commit 27e903bab8
2 changed files with 6 additions and 4 deletions

View file

@ -33,12 +33,12 @@ class Index:
def findTask(self, path):
if decision_task.CONFIG.git_ref == "refs/heads/master":
return {"taskId": ""}
return {"taskId": "<from index>"}
raise TaskclusterRestFailure
stringDate = str
slugId = b"id".lower
slugId = b"<new id>".lower
Queue = fromNow = MagicMock()
sys.modules["taskcluster"] = sys.modules[__name__]
sys.dont_write_bytecode = True