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

Side by Side Diff: PRESUBMIT.py

Issue 839083003: Add initial support for color output in the build system (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 11 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 | lib/naclports/__init__.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) 2011 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2011 The Native Client 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 # Documentation on PRESUBMIT.py can be found at: 5 # Documentation on PRESUBMIT.py can be found at:
6 # http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts 6 # http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
7 7
8 import os 8 import os
9 import subprocess 9 import subprocess
10 10
(...skipping 21 matching lines...) Expand all
32 def CheckBuildbot(input_api, output_api): 32 def CheckBuildbot(input_api, output_api):
33 try: 33 try:
34 cmd = ['build_tools/partition.py', '--check'] 34 cmd = ['build_tools/partition.py', '--check']
35 subprocess.check_call(cmd) 35 subprocess.check_call(cmd)
36 except subprocess.CalledProcessError: 36 except subprocess.CalledProcessError:
37 return [output_api.PresubmitError('%s failed' % str(cmd))] 37 return [output_api.PresubmitError('%s failed' % str(cmd))]
38 return [] 38 return []
39 39
40 40
41 def CheckDeps(input_api, output_api): 41 def CheckDeps(input_api, output_api):
42 cmd = ['build_tools/python_wrapper', 'build_tools/check_deps.py']
42 try: 43 try:
43 subprocess.check_call(['build_tools/check_deps.py']) 44 subprocess.check_call(cmd)
44 except subprocess.CalledProcessError: 45 except subprocess.CalledProcessError:
45 message = 'update_mirror.py --check failed.' 46 message = 'check_deps.py failed.'
46 message += '\nRun build_tools/update_mirror.py to update.'
47 return [output_api.PresubmitError(message)] 47 return [output_api.PresubmitError(message)]
48 return [] 48 return []
49 49
50 50
51 def CheckMirror(input_api, output_api): 51 def CheckMirror(input_api, output_api):
52 try: 52 try:
53 subprocess.check_call(['build_tools/update_mirror.py', '--check']) 53 subprocess.check_call(['build_tools/update_mirror.py', '--check'])
54 except subprocess.CalledProcessError: 54 except subprocess.CalledProcessError:
55 message = 'update_mirror.py --check failed.' 55 message = 'update_mirror.py --check failed.'
56 message += '\nRun build_tools/update_mirror.py to update.' 56 message += '\nRun build_tools/update_mirror.py to update.'
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 'naclports-linux-bionic-2', 109 'naclports-linux-bionic-2',
110 'naclports-linux-bionic-3', 110 'naclports-linux-bionic-3',
111 'naclports-linux-bionic-4', 111 'naclports-linux-bionic-4',
112 ] 112 ]
113 113
114 114
115 def GetPreferredTryMasters(_, change): 115 def GetPreferredTryMasters(_, change):
116 return { 116 return {
117 'tryserver.chromium': { t: set(['defaulttests']) for t in TRYBOTS }, 117 'tryserver.chromium': { t: set(['defaulttests']) for t in TRYBOTS },
118 } 118 }
OLDNEW
« no previous file with comments | « no previous file | lib/naclports/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698