OLD | NEW |
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 depot tools. | 5 """Top-level presubmit script for depot tools. |
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 UNIT_TESTS = [ | 11 UNIT_TESTS = [ |
| 12 'tests.fix_encoding_test', |
12 'tests.gcl_unittest', | 13 'tests.gcl_unittest', |
13 'tests.gclient_scm_test', | 14 'tests.gclient_scm_test', |
14 'tests.gclient_smoketest', | 15 'tests.gclient_smoketest', |
15 'tests.gclient_utils_test', | 16 'tests.gclient_utils_test', |
16 'tests.owners_unittest', | 17 'tests.owners_unittest', |
17 'tests.presubmit_unittest', | 18 'tests.presubmit_unittest', |
18 'tests.scm_unittest', | 19 'tests.scm_unittest', |
19 'tests.trychange_unittest', | 20 'tests.trychange_unittest', |
20 'tests.watchlists_unittest', | 21 'tests.watchlists_unittest', |
21 ] | 22 ] |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 return CommonChecks(input_api, output_api) | 58 return CommonChecks(input_api, output_api) |
58 | 59 |
59 | 60 |
60 def CheckChangeOnCommit(input_api, output_api): | 61 def CheckChangeOnCommit(input_api, output_api): |
61 output = [] | 62 output = [] |
62 output.extend(CommonChecks(input_api, output_api)) | 63 output.extend(CommonChecks(input_api, output_api)) |
63 output.extend(input_api.canned_checks.CheckDoNotSubmit( | 64 output.extend(input_api.canned_checks.CheckDoNotSubmit( |
64 input_api, | 65 input_api, |
65 output_api)) | 66 output_api)) |
66 return output | 67 return output |
OLD | NEW |