| 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1086 | 1086 |
| 1087 def GetDefaultTryConfigs(bots=None): | 1087 def GetDefaultTryConfigs(bots=None): |
| 1088 """Returns a list of ('bot', set(['tests']), optionally filtered by [bots]. | 1088 """Returns a list of ('bot', set(['tests']), optionally filtered by [bots]. |
| 1089 | 1089 |
| 1090 If 'bots' is specified, will only return configurations for bots in that list. | 1090 If 'bots' is specified, will only return configurations for bots in that list. |
| 1091 """ | 1091 """ |
| 1092 | 1092 |
| 1093 builders_and_tests = { | 1093 builders_and_tests = { |
| 1094 'Mojo Android Builder (dbg) Try': ['defaulttests'], | 1094 'Mojo Android Builder (dbg) Try': ['defaulttests'], |
| 1095 'Mojo Android Builder Try': ['defaulttests'], | 1095 'Mojo Android Builder Try': ['defaulttests'], |
| 1096 'Mojo Android Builder Tests (dbg) Try': ['defaulttests'], |
| 1096 'Mojo ChromeOS Builder (dbg) Try': ['defaulttests'], | 1097 'Mojo ChromeOS Builder (dbg) Try': ['defaulttests'], |
| 1097 'Mojo ChromeOS Builder Try': ['defaulttests'], | 1098 'Mojo ChromeOS Builder Try': ['defaulttests'], |
| 1098 'Mojo Linux (dbg) Try': ['defaulttests'], | 1099 'Mojo Linux (dbg) Try': ['defaulttests'], |
| 1099 'Mojo Linux ASan Try': ['defaulttests'], | 1100 'Mojo Linux ASan Try': ['defaulttests'], |
| 1100 'Mojo Linux NaCl (dbg) Try': ['defaulttests'], | 1101 'Mojo Linux NaCl (dbg) Try': ['defaulttests'], |
| 1101 'Mojo Linux NaCl Try': ['defaulttests'], | 1102 'Mojo Linux NaCl Try': ['defaulttests'], |
| 1102 'Mojo Linux Try': ['defaulttests'], | 1103 'Mojo Linux Try': ['defaulttests'], |
| 1103 } | 1104 } |
| 1104 | 1105 |
| 1105 if bots: | 1106 if bots: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1130 def GetPreferredTryMasters(project, change): | 1131 def GetPreferredTryMasters(project, change): |
| 1131 import re | 1132 import re |
| 1132 files = change.LocalPaths() | 1133 files = change.LocalPaths() |
| 1133 | 1134 |
| 1134 if not files: | 1135 if not files: |
| 1135 return {} | 1136 return {} |
| 1136 | 1137 |
| 1137 builders = [ | 1138 builders = [ |
| 1138 'Mojo Android Builder (dbg) Try', | 1139 'Mojo Android Builder (dbg) Try', |
| 1139 'Mojo Android Builder Try', | 1140 'Mojo Android Builder Try', |
| 1141 'Mojo Android Builder Tests (dbg) Try', |
| 1140 'Mojo ChromeOS Builder (dbg) Try', | 1142 'Mojo ChromeOS Builder (dbg) Try', |
| 1141 'Mojo ChromeOS Builder Try', | 1143 'Mojo ChromeOS Builder Try', |
| 1142 'Mojo Linux (dbg) Try', | 1144 'Mojo Linux (dbg) Try', |
| 1143 'Mojo Linux ASan Try', | 1145 'Mojo Linux ASan Try', |
| 1144 'Mojo Linux NaCl (dbg) Try', | 1146 'Mojo Linux NaCl (dbg) Try', |
| 1145 'Mojo Linux NaCl Try', | 1147 'Mojo Linux NaCl Try', |
| 1146 'Mojo Linux Try', | 1148 'Mojo Linux Try', |
| 1147 ] | 1149 ] |
| 1148 | 1150 |
| 1149 return GetDefaultTryConfigs(builders) | 1151 return GetDefaultTryConfigs(builders) |
| OLD | NEW |