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

Side by Side Diff: PRESUBMIT.py

Issue 22980008: Merge all swarm_*.py scripts into swarming.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Rebase against r219402 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
« no previous file with comments | « no previous file | README.py » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """Top-level presubmit script for swarm_client. 5 """Top-level presubmit script for swarm_client.
6 6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
8 details on the presubmit API built into gcl. 8 details on the presubmit API built into gcl.
9 """ 9 """
10 10
(...skipping 13 matching lines...) Expand all
24 output.extend(input_api.canned_checks.RunPylint(input_api, output_api)) 24 output.extend(input_api.canned_checks.RunPylint(input_api, output_api))
25 finally: 25 finally:
26 sys.path = sys_path_backup 26 sys.path = sys_path_backup
27 27
28 integation_tests = [] 28 integation_tests = []
29 if not input_api.is_committing: 29 if not input_api.is_committing:
30 # These tests are touching the live infrastructure. It's a pain if your IP 30 # These tests are touching the live infrastructure. It's a pain if your IP
31 # is not whitelisted so only run these on commit. 31 # is not whitelisted so only run these on commit.
32 integation_tests = [ 32 integation_tests = [
33 r'.*isolateserver_archive_smoke_test\.py$', 33 r'.*isolateserver_archive_smoke_test\.py$',
34 r'.*swarm_get_results_smoke_test\.py$', 34 r'.*swarming_smoke_test\.py$',
35 ] 35 ]
36 36
37 output.extend( 37 output.extend(
38 input_api.canned_checks.RunUnitTestsInDirectory( 38 input_api.canned_checks.RunUnitTestsInDirectory(
39 input_api, output_api, 39 input_api, output_api,
40 input_api.os_path.join(input_api.PresubmitLocalPath(), 'tests'), 40 input_api.os_path.join(input_api.PresubmitLocalPath(), 'tests'),
41 whitelist=[r'.+_test\.py$'], 41 whitelist=[r'.+_test\.py$'],
42 blacklist=integation_tests)) 42 blacklist=integation_tests))
43 output.extend( 43 output.extend(
44 input_api.canned_checks.RunUnitTestsInDirectory( 44 input_api.canned_checks.RunUnitTestsInDirectory(
45 input_api, output_api, 45 input_api, output_api,
46 input_api.os_path.join( 46 input_api.os_path.join(
47 input_api.PresubmitLocalPath(), 'googletest', 'tests'), 47 input_api.PresubmitLocalPath(), 'googletest', 'tests'),
48 whitelist=[r'.+_test\.py$'])) 48 whitelist=[r'.+_test\.py$']))
49 49
50 if input_api.is_committing: 50 if input_api.is_committing:
51 output.extend(input_api.canned_checks.PanProjectChecks(input_api, 51 output.extend(input_api.canned_checks.PanProjectChecks(input_api,
52 output_api, 52 output_api,
53 owners_check=False)) 53 owners_check=False))
54 return output 54 return output
55 55
56 56
57 def CheckChangeOnUpload(input_api, output_api): 57 def CheckChangeOnUpload(input_api, output_api):
58 return CommonChecks(input_api, output_api) 58 return CommonChecks(input_api, output_api)
59 59
60 60
61 def CheckChangeOnCommit(input_api, output_api): 61 def CheckChangeOnCommit(input_api, output_api):
62 return CommonChecks(input_api, output_api) 62 return CommonChecks(input_api, output_api)
OLDNEW
« no previous file with comments | « no previous file | README.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698