| 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 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1484 return results | 1484 return results |
| 1485 | 1485 |
| 1486 | 1486 |
| 1487 def GetDefaultTryConfigs(bots=None): | 1487 def GetDefaultTryConfigs(bots=None): |
| 1488 """Returns a list of ('bot', set(['tests']), optionally filtered by [bots]. | 1488 """Returns a list of ('bot', set(['tests']), optionally filtered by [bots]. |
| 1489 | 1489 |
| 1490 If 'bots' is specified, will only return configurations for bots in that list. | 1490 If 'bots' is specified, will only return configurations for bots in that list. |
| 1491 """ | 1491 """ |
| 1492 | 1492 |
| 1493 builders_and_tests = { | 1493 builders_and_tests = { |
| 1494 'Mojo Android Builder (dbg) Try': ['defaulttests'], |
| 1495 'Mojo Android Builder Try': ['defaulttests'], |
| 1496 'Mojo ChromeOS Builder (dbg) Try': ['defaulttests'], |
| 1497 'Mojo ChromeOS Builder Try': ['defaulttests'], |
| 1498 'Mojo Linux (dbg) Try': ['defaulttests'], |
| 1499 'Mojo Linux ASan Try': ['defaulttests'], |
| 1500 'Mojo Linux NaCl (dbg) Try': ['defaulttests'], |
| 1501 'Mojo Linux NaCl Try': ['defaulttests'], |
| 1494 'Mojo Linux Try': ['defaulttests'], | 1502 'Mojo Linux Try': ['defaulttests'], |
| 1495 'Mojo Linux (dbg) Try': ['defaulttests'], | |
| 1496 'Mojo Linux NaCl Try': ['defaulttests'], | |
| 1497 'Mojo Linux NaCl (dbg) Try': ['defaulttests'], | |
| 1498 'Mojo Android Builder Try': ['defaulttests'], | |
| 1499 'Mojo Android Builder (dbg) Try': ['defaulttests'], | |
| 1500 'Mojo ChromeOS Builder Try': ['defaulttests'], | |
| 1501 'Mojo ChromeOS Builder (dbg) Try': ['defaulttests'], | |
| 1502 } | 1503 } |
| 1503 | 1504 |
| 1504 if bots: | 1505 if bots: |
| 1505 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot])) | 1506 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot])) |
| 1506 for bot in bots) | 1507 for bot in bots) |
| 1507 else: | 1508 else: |
| 1508 filtered_builders_and_tests = dict( | 1509 filtered_builders_and_tests = dict( |
| 1509 (bot, set(tests)) | 1510 (bot, set(tests)) |
| 1510 for bot, tests in builders_and_tests.iteritems()) | 1511 for bot, tests in builders_and_tests.iteritems()) |
| 1511 | 1512 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1538 'Mojo Linux (dbg) Try', | 1539 'Mojo Linux (dbg) Try', |
| 1539 'Mojo Linux NaCl Try', | 1540 'Mojo Linux NaCl Try', |
| 1540 'Mojo Linux NaCl (dbg) Try', | 1541 'Mojo Linux NaCl (dbg) Try', |
| 1541 'Mojo Android Builder Try', | 1542 'Mojo Android Builder Try', |
| 1542 'Mojo Android Builder (dbg) Try', | 1543 'Mojo Android Builder (dbg) Try', |
| 1543 'Mojo ChromeOS Builder Try', | 1544 'Mojo ChromeOS Builder Try', |
| 1544 'Mojo ChromeOS Builder (dbg) Try', | 1545 'Mojo ChromeOS Builder (dbg) Try', |
| 1545 ] | 1546 ] |
| 1546 | 1547 |
| 1547 return GetDefaultTryConfigs(builders) | 1548 return GetDefaultTryConfigs(builders) |
| OLD | NEW |