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

Side by Side Diff: recipe_modules/rietveld/example.py

Issue 1917263002: Revert of depot_tools: add infra_paths recipe module for infra-specific paths (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « recipe_modules/rietveld/api.py ('k') | recipe_modules/rietveld/example.expected/basic.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 DEPS = [ 5 DEPS = [
6 'infra_paths',
7 'recipe_engine/path', 6 'recipe_engine/path',
8 'recipe_engine/properties', 7 'recipe_engine/properties',
9 'recipe_engine/step', 8 'recipe_engine/step',
10 'rietveld', 9 'rietveld',
11 ] 10 ]
12 11
13 def RunSteps(api): 12 def RunSteps(api):
14 api.path['checkout'] = api.infra_paths['slave_build'] 13 api.path['checkout'] = api.path['slave_build']
15 api.rietveld.apply_issue('foo', 'bar', authentication='oauth2') 14 api.rietveld.apply_issue('foo', 'bar', authentication='oauth2')
16 api.rietveld.calculate_issue_root({'project': ['']}) 15 api.rietveld.calculate_issue_root({'project': ['']})
17 16
18 17
19 def GenTests(api): 18 def GenTests(api):
20 yield (api.test('basic') 19 yield (api.test('basic')
21 + api.properties(issue=1, 20 + api.properties(issue=1,
22 patchset=1, 21 patchset=1,
23 rietveld='http://review_tool.url') 22 rietveld='http://review_tool.url')
24 ) 23 )
OLDNEW
« no previous file with comments | « recipe_modules/rietveld/api.py ('k') | recipe_modules/rietveld/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698