Bug 1356934 - Don't assume the path to routes.json is relative to topsrcdir. r=dustin

--HG--
extra : rebase_source : 68c18a233cefe2b61cf509a18315d41705e56e61
This commit is contained in:
Mike Hommey 2017-04-17 09:02:38 +09:00
Родитель efc709d6bf
Коммит 4199850ee1
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -11,6 +11,7 @@ complexities of worker implementations, scopes, and treeherder annotations.
from __future__ import absolute_import, print_function, unicode_literals from __future__ import absolute_import, print_function, unicode_literals
import json import json
import os
import time import time
from copy import deepcopy 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.schema import validate_schema, Schema
from taskgraph.util.scriptworker import get_release_config from taskgraph.util.scriptworker import get_release_config
from voluptuous import Any, Required, Optional, Extra from voluptuous import Any, Required, Optional, Extra
from taskgraph import GECKO
from .gecko_v2_whitelist import JOB_NAME_WHITELIST, JOB_NAME_WHITELIST_ERROR 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 # go away once Mozharness builds are no longer performed in Buildbot, and the
# Mozharness code referencing routes.json is deleted. # Mozharness code referencing routes.json is deleted.
def check_v2_routes(): 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) routes_json = json.load(f)
for key in ('routes', 'nightly', 'l10n'): for key in ('routes', 'nightly', 'l10n'):