| 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[\/\\]include[\/\\]fts\.h", | 20 r"^ports[\/\\]glibc-compat[\/\\]include[\/\\]fts\.h", |
| 21 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]err\.c", | 21 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]err\.c", |
| 22 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]libc-symbols\.h", | 22 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]libc-symbols\.h", |
| 23 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]dirfd.c", | 23 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]dirfd.c", |
| 24 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]flock.c", | 24 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]flock.c", |
| 25 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]fts.c", | 25 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]fts.c", |
| 26 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]herror.c", | 26 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]herror.c", |
| 27 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]timegm.c", | 27 r"^ports[\/\\]glibc-compat[\/\\]src[\/\\]timegm.c", |
| 28 r"^ports[\\\/]alut-demo[\\\/]alut_hello_world.c", |
| 28 ) | 29 ) |
| 29 | 30 |
| 30 def RunPylint(input_api, output_api): | 31 def RunPylint(input_api, output_api): |
| 31 output = [] | 32 output = [] |
| 32 canned = input_api.canned_checks | 33 canned = input_api.canned_checks |
| 33 disabled_warnings = [ | 34 disabled_warnings = [ |
| 34 'W0613', # Unused argument | 35 'W0613', # Unused argument |
| 35 ] | 36 ] |
| 36 black_list = list(input_api.DEFAULT_BLACK_LIST) + [ | 37 black_list = list(input_api.DEFAULT_BLACK_LIST) + [ |
| 37 r'ports[\/\\]ipython-ppapi[\/\\]kernel\.py', | 38 r'ports[\/\\]ipython-ppapi[\/\\]kernel\.py', |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 'naclports-linux-clang-4', | 147 'naclports-linux-clang-4', |
| 147 'naclports-linux-clang-5', | 148 'naclports-linux-clang-5', |
| 148 'naclports-linux-emscripten-0', | 149 'naclports-linux-emscripten-0', |
| 149 ] | 150 ] |
| 150 | 151 |
| 151 | 152 |
| 152 def GetPreferredTryMasters(_, change): | 153 def GetPreferredTryMasters(_, change): |
| 153 return { | 154 return { |
| 154 'tryserver.nacl': { t: set(['defaulttests']) for t in TRYBOTS }, | 155 'tryserver.nacl': { t: set(['defaulttests']) for t in TRYBOTS }, |
| 155 } | 156 } |
| OLD | NEW |