Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: recipes/infra.py

Issue 466923002: Add expect_tests and testing_support to infra recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipes/infra.py
diff --git a/recipes/infra.py b/recipes/infra.py
index 679859edc728c6b301d60c7b41b2e5ca4c420523..cb3e340076c1802b2f6322ccb51456b51d3d9a33 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: {
ghost stip (do not use) 2014/08/12 21:11:59 this is kind of nuts imo
ghost stip (do not use) 2014/08/12 21:11:59 remove spaces so you get 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',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698