From 4199850ee1147d6f92b610d7f64fbdf216b4f548 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Mon, 17 Apr 2017 09:02:38 +0900 Subject: [PATCH] Bug 1356934 - Don't assume the path to routes.json is relative to topsrcdir. r=dustin --HG-- extra : rebase_source : 68c18a233cefe2b61cf509a18315d41705e56e61 --- taskcluster/taskgraph/transforms/task.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/taskcluster/taskgraph/transforms/task.py b/taskcluster/taskgraph/transforms/task.py index 15dc15c34d01..7e47fa9a673f 100644 --- a/taskcluster/taskgraph/transforms/task.py +++ b/taskcluster/taskgraph/transforms/task.py @@ -11,6 +11,7 @@ complexities of worker implementations, scopes, and treeherder annotations. from __future__ import absolute_import, print_function, unicode_literals import json +import os import time from copy import deepcopy @@ -19,6 +20,7 @@ from taskgraph.transforms.base import TransformSequence from taskgraph.util.schema import validate_schema, Schema from taskgraph.util.scriptworker import get_release_config from voluptuous import Any, Required, Optional, Extra +from taskgraph import GECKO from .gecko_v2_whitelist import JOB_NAME_WHITELIST, JOB_NAME_WHITELIST_ERROR @@ -980,7 +982,7 @@ def build_task(config, tasks): # go away once Mozharness builds are no longer performed in Buildbot, and the # Mozharness code referencing routes.json is deleted. def check_v2_routes(): - with open("testing/mozharness/configs/routes.json", "rb") as f: + with open(os.path.join(GECKO, "testing/mozharness/configs/routes.json"), "rb") as f: routes_json = json.load(f) for key in ('routes', 'nightly', 'l10n'):