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

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: Yeeeeaaaahhhhhh! 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 '--skip_canned', 'CheckRietveldTryJobExecution', 43 '--skip_canned', 'CheckRietveldTryJobExecution',
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 extra = {}
53 if 'blink' in repo_name: 54 if 'blink' in repo_name:
54 props = api.properties_tryserver( 55 extra['root'] = 'src/third_party/WebKit'
55 root='src/third_party/WebKit'
56 )
57 else:
58 props = api.properties_tryserver()
59 56
60 props['repo_name'] = repo_name 57 yield api.Test(repo_name) + api.properties.tryserver(
61 yield repo_name, { 58 repo_name=repo_name,
62 'properties': props 59 **extra
63 } 60 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698