aboutsummaryrefslogtreecommitdiffstats
path: root/etc/taskcluster/mock.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-12-13 11:38:48 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-12-13 11:38:48 +0100
commit27e903bab82b5b6ba6fc959fb888efb920a16a61 (patch)
treee638a3636e07b8ac99005bd01cc9a5b18e41ca06 /etc/taskcluster/mock.py
parent8de59c15b5197a4971d62de370490fb157c4b7c2 (diff)
downloadservo-27e903bab82b5b6ba6fc959fb888efb920a16a61.tar.gz
servo-27e903bab82b5b6ba6fc959fb888efb920a16a61.zip
Decision task: print IDs of tasks scheduled or found in the index
Diffstat (limited to 'etc/taskcluster/mock.py')
-rwxr-xr-xetc/taskcluster/mock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/taskcluster/mock.py b/etc/taskcluster/mock.py
index 60720f73ddd..bfc963ebaf8 100755
--- a/etc/taskcluster/mock.py
+++ b/etc/taskcluster/mock.py
@@ -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