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

Side by Side Diff: PRESUBMIT.py

Issue 235005: gclient_scm: add support for .git (Closed)
Patch Set: Fixed per code review. Created 11 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
« no previous file with comments | « no previous file | gclient_scm.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 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Top-level presubmit script for depot tools. 6 """Top-level presubmit script for depot tools.
7 7
8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for 8 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
9 details on the presubmit API built into gcl. 9 details on the presubmit API built into gcl.
10 """ 10 """
11 11
12 UNIT_TESTS = [ 12 UNIT_TESTS = [
13 'tests.gcl_unittest', 13 'tests.gcl_unittest',
14 'tests.gclient_test', 14 'tests.gclient_test',
15 'tests.gclient_scm_test',
15 'tests.presubmit_unittest', 16 'tests.presubmit_unittest',
16 'tests.revert_unittest', 17 'tests.revert_unittest',
17 'tests.trychange_unittest', 18 'tests.trychange_unittest',
18 'tests.watchlists_unittest', 19 'tests.watchlists_unittest',
19 ] 20 ]
20 21
21 def CheckChangeOnUpload(input_api, output_api): 22 def CheckChangeOnUpload(input_api, output_api):
22 output = [] 23 output = []
23 output.extend(input_api.canned_checks.RunPythonUnitTests(input_api, 24 output.extend(input_api.canned_checks.RunPythonUnitTests(input_api,
24 output_api, 25 output_api,
25 UNIT_TESTS)) 26 UNIT_TESTS))
26 return output 27 return output
27 28
28 29
29 def CheckChangeOnCommit(input_api, output_api): 30 def CheckChangeOnCommit(input_api, output_api):
30 output = [] 31 output = []
31 output.extend(input_api.canned_checks.RunPythonUnitTests(input_api, 32 output.extend(input_api.canned_checks.RunPythonUnitTests(input_api,
32 output_api, 33 output_api,
33 UNIT_TESTS)) 34 UNIT_TESTS))
34 output.extend(input_api.canned_checks.CheckDoNotSubmit(input_api, 35 output.extend(input_api.canned_checks.CheckDoNotSubmit(input_api,
35 output_api)) 36 output_api))
36 return output 37 return output
OLDNEW
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698