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

Side by Side Diff: scripts/slave/recipes/run_presubmit.py

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Move gclient test_api to got_revisions cl Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 'gclient', 6 'gclient',
7 'git', 7 'git',
8 'path', 8 'path',
9 'properties', 9 'properties',
10 'rietveld', 10 'rietveld',
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 '--skip_canned', 'CheckTreeIsOpen', 44 '--skip_canned', 'CheckTreeIsOpen',
45 '--skip_canned', 'CheckBuildbotPendingBuilds', 45 '--skip_canned', 'CheckBuildbotPendingBuilds',
46 '--rietveld_url', api.properties['rietveld'], 46 '--rietveld_url', api.properties['rietveld'],
47 '--rietveld_email', '', # activates anonymous mode 47 '--rietveld_email', '', # activates anonymous mode
48 '--rietveld_fetch']) 48 '--rietveld_fetch'])
49 49
50 50
51 def GenTests(api): 51 def GenTests(api):
52 for repo_name in ['blink', 'blink_bare', 'tools_build', 'chromium']: 52 for repo_name in ['blink', 'blink_bare', 'tools_build', 'chromium']:
53 if 'blink' in repo_name: 53 if 'blink' in repo_name:
54 props = api.properties_tryserver( 54 props = api.properties.tryserver(
55 root='src/third_party/WebKit' 55 root='src/third_party/WebKit'
56 ) 56 )
57 else: 57 else:
58 props = api.properties_tryserver() 58 props = api.properties.tryserver()
59 59
60 props['repo_name'] = repo_name 60 props['repo_name'] = repo_name
61 yield repo_name, { 61 yield repo_name, {
62 'properties': props 62 'properties': props
63 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698