OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium 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 """Top-level presubmit script for Chromium. | 5 """Top-level presubmit script for Chromium. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 r"^chrome[\\\/]browser[\\\/]ui[\\\/]startup[\\\/]" | 894 r"^chrome[\\\/]browser[\\\/]ui[\\\/]startup[\\\/]" |
895 r"startup_browser_creator\.cc$", | 895 r"startup_browser_creator\.cc$", |
896 r"^chrome[\\\/]installer[\\\/]setup[\\\/].*", | 896 r"^chrome[\\\/]installer[\\\/]setup[\\\/].*", |
897 r"^chrome[\\\/]renderer[\\\/]extensions[\\\/]" | 897 r"^chrome[\\\/]renderer[\\\/]extensions[\\\/]" |
898 r"logging_native_handler\.cc$", | 898 r"logging_native_handler\.cc$", |
899 r"^content[\\\/]common[\\\/]gpu[\\\/]client[\\\/]" | 899 r"^content[\\\/]common[\\\/]gpu[\\\/]client[\\\/]" |
900 r"gl_helper_benchmark\.cc$", | 900 r"gl_helper_benchmark\.cc$", |
901 r"^remoting[\\\/]base[\\\/]logging\.h$", | 901 r"^remoting[\\\/]base[\\\/]logging\.h$", |
902 r"^remoting[\\\/]host[\\\/].*", | 902 r"^remoting[\\\/]host[\\\/].*", |
903 r"^sandbox[\\\/]linux[\\\/].*", | 903 r"^sandbox[\\\/]linux[\\\/].*", |
904 r"^tools[\\\/]telemetry[\\\/]telemetry[\\\/]core[\\\/]" | |
905 r"bitmaptools.cc$", | |
906 r"^ui[\\\/]aura[\\\/]bench[\\\/]bench_main\.cc$",)) | 904 r"^ui[\\\/]aura[\\\/]bench[\\\/]bench_main\.cc$",)) |
907 source_file_filter = lambda x: input_api.FilterSourceFile( | 905 source_file_filter = lambda x: input_api.FilterSourceFile( |
908 x, white_list=(file_inclusion_pattern,), black_list=black_list) | 906 x, white_list=(file_inclusion_pattern,), black_list=black_list) |
909 | 907 |
910 log_info = [] | 908 log_info = [] |
911 printf = [] | 909 printf = [] |
912 | 910 |
913 for f in input_api.AffectedSourceFiles(source_file_filter): | 911 for f in input_api.AffectedSourceFiles(source_file_filter): |
914 contents = input_api.ReadFile(f, 'rb') | 912 contents = input_api.ReadFile(f, 'rb') |
915 if re.search(r"\bD?LOG\s*\(\s*INFO\s*\)", contents): | 913 if re.search(r"\bD?LOG\s*\(\s*INFO\s*\)", contents): |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 trybots.extend(GetDefaultTryConfigs(['cros_x86'])) | 1450 trybots.extend(GetDefaultTryConfigs(['cros_x86'])) |
1453 | 1451 |
1454 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it | 1452 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it |
1455 # unless they're .gyp(i) files as changes to those files can break the gyp | 1453 # unless they're .gyp(i) files as changes to those files can break the gyp |
1456 # step on that bot. | 1454 # step on that bot. |
1457 if (not all(re.search('^chrome', f) for f in files) or | 1455 if (not all(re.search('^chrome', f) for f in files) or |
1458 any(re.search('\.gypi?$', f) for f in files)): | 1456 any(re.search('\.gypi?$', f) for f in files)): |
1459 trybots.extend(GetDefaultTryConfigs(['android_aosp'])) | 1457 trybots.extend(GetDefaultTryConfigs(['android_aosp'])) |
1460 | 1458 |
1461 return trybots | 1459 return trybots |
OLD | NEW |