| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |