OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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.gcl_unittest', | 12 'tests.gcl_unittest', |
13 # The git tests are broken. | 13 'tests.gclient_scm_test', |
14 #'tests.gclient_scm_test', | |
15 'tests.gclient_smoketest', | 14 'tests.gclient_smoketest', |
16 'tests.gclient_utils_test', | 15 'tests.gclient_utils_test', |
17 'tests.presubmit_unittest', | 16 'tests.presubmit_unittest', |
18 'tests.scm_unittest', | 17 'tests.scm_unittest', |
19 'tests.trychange_unittest', | 18 'tests.trychange_unittest', |
20 'tests.watchlists_unittest', | 19 'tests.watchlists_unittest', |
21 ] | 20 ] |
22 | 21 |
23 def CheckChangeOnUpload(input_api, output_api): | 22 def CheckChangeOnUpload(input_api, output_api): |
24 output = [] | 23 output = [] |
(...skipping 15 matching lines...) Expand all Loading... |
40 return output | 39 return output |
41 | 40 |
42 def WasGitClUploadHookModified(input_api, output_api): | 41 def WasGitClUploadHookModified(input_api, output_api): |
43 for affected_file in input_api.AffectedSourceFiles(None): | 42 for affected_file in input_api.AffectedSourceFiles(None): |
44 if (input_api.os_path.basename(affected_file.LocalPath()) == | 43 if (input_api.os_path.basename(affected_file.LocalPath()) == |
45 'git-cl-upload-hook'): | 44 'git-cl-upload-hook'): |
46 return [output_api.PresubmitPromptWarning( | 45 return [output_api.PresubmitPromptWarning( |
47 'Don\'t forget to fix git-cl to download the newest version of ' | 46 'Don\'t forget to fix git-cl to download the newest version of ' |
48 'git-cl-upload-hook')] | 47 'git-cl-upload-hook')] |
49 return [] | 48 return [] |
OLD | NEW |