OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 """Top-level presubmit script for buildbot. | 5 """Top-level presubmit script for buildbot. |
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 |
11 | 11 |
12 DISABLED_TESTS = [ | 12 DISABLED_TESTS = [ |
13 '.*appengine/chromium_status/tests/main_test.py', | 13 '.*appengine/chromium_status/tests/main_test.py', |
14 '.*appengine/chromium_build/app_test.py', | 14 '.*appengine/chromium_build/app_test.py', |
15 ] | 15 ] |
16 | 16 |
17 | 17 |
18 DISABLED_PROJECTS = [ | 18 DISABLED_PROJECTS = [ |
19 'appengine/chromium_build', | 19 'appengine/chromium_build', |
20 'infra/services/lkgr_finder', | 20 'infra/services/lkgr_finder', |
21 'infra/services/gnumbd', | 21 'infra/services/gnumbd', |
22 'infra/ext/[^/]*/.*', | |
23 ] | 22 ] |
24 | 23 |
25 | 24 |
26 def CommonChecks(input_api, output_api): | 25 def CommonChecks(input_api, output_api): |
27 tests = [] | 26 tests = [] |
28 | 27 |
29 blacklist = list(input_api.DEFAULT_BLACK_LIST) + DISABLED_PROJECTS | 28 blacklist = list(input_api.DEFAULT_BLACK_LIST) + DISABLED_PROJECTS |
30 | 29 |
31 status_output = input_api.subprocess.check_output( | 30 status_output = input_api.subprocess.check_output( |
32 ['git', 'status', '--porcelain', '--ignored']) | 31 ['git', 'status', '--porcelain', '--ignored']) |
(...skipping 29 matching lines...) Expand all Loading... |
62 | 61 |
63 | 62 |
64 def CheckChangeOnUpload(input_api, output_api): | 63 def CheckChangeOnUpload(input_api, output_api): |
65 return CommonChecks(input_api, output_api) | 64 return CommonChecks(input_api, output_api) |
66 | 65 |
67 | 66 |
68 def CheckChangeOnCommit(input_api, output_api): | 67 def CheckChangeOnCommit(input_api, output_api): |
69 output = CommonChecks(input_api, output_api) | 68 output = CommonChecks(input_api, output_api) |
70 output.extend(input_api.canned_checks.CheckOwners(input_api, output_api)) | 69 output.extend(input_api.canned_checks.CheckOwners(input_api, output_api)) |
71 return output | 70 return output |
OLD | NEW |