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 |
11 PYTHON = 'build_tools/python_wrapper' | 11 PYTHON = 'build_tools/python_wrapper' |
12 | 12 |
13 _EXCLUDED_PATHS = ( | 13 _EXCLUDED_PATHS = ( |
14 # patch_configure.py contains long lines embedded in multi-line | 14 # patch_configure.py contains long lines embedded in multi-line |
15 # strings. | 15 # strings. |
16 r"^build_tools[\\\/]patch_configure.py", | 16 r"^build_tools[\\\/]patch_configure.py", |
17 # Many of the files in glibc-compat come from the other sources such as | 17 # Many of the files in glibc-compat come from the other sources such as |
18 # newlib and as such do not contain our copyright header. | 18 # newlib and as such do not contain our copyright header. |
19 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]err\.h", | 19 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]err\.h", |
20 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]err\.c" | 20 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]fts\.h", |
21 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]libc-symbols\.h" | 21 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]err\.c", |
| 22 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]libc-symbols\.h", |
| 23 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]dirfd.c", |
| 24 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]flock.c", |
| 25 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]fts.c", |
| 26 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]herror.c", |
| 27 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]timegm.c", |
22 ) | 28 ) |
23 | 29 |
24 def RunPylint(input_api, output_api): | 30 def RunPylint(input_api, output_api): |
25 output = [] | 31 output = [] |
26 canned = input_api.canned_checks | 32 canned = input_api.canned_checks |
27 disabled_warnings = [ | 33 disabled_warnings = [ |
28 'W0613', # Unused argument | 34 'W0613', # Unused argument |
29 ] | 35 ] |
30 black_list = list(input_api.DEFAULT_BLACK_LIST) + [ | 36 black_list = list(input_api.DEFAULT_BLACK_LIST) + [ |
31 r'ports[\/\\]ipython-ppapi[\/\\]kernel\.py', | 37 r'ports[\/\\]ipython-ppapi[\/\\]kernel\.py', |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 'naclports-linux-clang-3', | 148 'naclports-linux-clang-3', |
143 'naclports-linux-clang-4', | 149 'naclports-linux-clang-4', |
144 'naclports-linux-emscripten-0', | 150 'naclports-linux-emscripten-0', |
145 ] | 151 ] |
146 | 152 |
147 | 153 |
148 def GetPreferredTryMasters(_, change): | 154 def GetPreferredTryMasters(_, change): |
149 return { | 155 return { |
150 'tryserver.nacl': { t: set(['defaulttests']) for t in TRYBOTS }, | 156 'tryserver.nacl': { t: set(['defaulttests']) for t in TRYBOTS }, |
151 } | 157 } |
OLD | NEW |