From 885361a676ddcd6d4acb2958967b3e7940819074 Mon Sep 17 00:00:00 2001 From: "iannucci@chromium.org" Date: Sun, 17 Aug 2014 17:55:03 +0000 Subject: [PATCH] Add expect_tests and testing_support to infra recipe. For more better access :) R=eseidel@chromium.org, stip@chromium.org BUG= Review URL: https://codereview.chromium.org/466923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@290190 0039d316-1c4b-4281-b951-d872f2087c98 --- recipes/infra.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/recipes/infra.py b/recipes/infra.py index 679859edc..cb3e34007 100644 --- a/recipes/infra.py +++ b/recipes/infra.py @@ -13,16 +13,21 @@ class Infra(recipe_util.Recipe): """Basic Recipe class for the Infrastructure repositories.""" @staticmethod - def fetch_spec(props): - url = 'https://chromium.googlesource.com/infra/infra.git' - solution = { - 'name' : 'infra', - 'url' : url, - 'deps_file': 'DEPS', - 'managed' : False, + def fetch_spec(_props): + solution = lambda name, path_infix = None: { + 'name' : name, + 'url' : 'https://chromium.googlesource.com/infra/%s%s.git' % ( + path_infix + '/' if path_infix else '', name + ), + 'deps_file': 'DEPS', + 'managed' : False, } spec = { - 'solutions': [solution], + 'solutions': [ + solution('infra'), + solution('expect_tests', 'testing'), + solution('testing_support', 'testing'), + ], } return { 'type': 'gclient_git',