| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import collections | 5 import collections |
| 6 | 6 |
| 7 from recipe_engine.types import freeze | 7 from infra.libs.infra_types import freeze |
| 8 | 8 |
| 9 DEPS = [ | 9 DEPS = [ |
| 10 'amp', | 10 'amp', |
| 11 'bot_update', | 11 'bot_update', |
| 12 'chromium', | 12 'chromium', |
| 13 'chromium_android', | 13 'chromium_android', |
| 14 'chromium_tests', | 14 'chromium_tests', |
| 15 'file', | |
| 16 'gclient', | 15 'gclient', |
| 17 'gpu', | 16 'gpu', |
| 18 'isolate', | 17 'isolate', |
| 18 'itertools', |
| 19 'json', | 19 'json', |
| 20 'path', | 20 'path', |
| 21 'platform', | 21 'platform', |
| 22 'properties', | 22 'properties', |
| 23 'python', | 23 'python', |
| 24 'raw_io', | 24 'raw_io', |
| 25 'step', | 25 'step', |
| 26 'swarming', | 26 'swarming', |
| 27 'test_utils', | 27 'test_utils', |
| 28 'tryserver', | 28 'tryserver', |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 override_bot_type='builder_tester') | 801 override_bot_type='builder_tester') |
| 802 | 802 |
| 803 if not tests: | 803 if not tests: |
| 804 return | 804 return |
| 805 | 805 |
| 806 api.chromium_tests.run_tests_and_deapply_as_needed(mastername, api, tests, | 806 api.chromium_tests.run_tests_and_deapply_as_needed(mastername, api, tests, |
| 807 bot_update_step) | 807 bot_update_step) |
| 808 | 808 |
| 809 | 809 |
| 810 def RunSteps(api): | 810 def RunSteps(api): |
| 811 # build/tests/masters_recipes_tests.py needs to manipulate the BUILDERS | |
| 812 # dict, so we provide an API to dump it here. | |
| 813 if api.properties.get('dump_builders'): # pragma: no cover | |
| 814 api.file.copy('Dump BUILDERS dict', | |
| 815 api.json.input(BUILDERS), api.properties['dump_builders']) | |
| 816 return | |
| 817 | |
| 818 with api.tryserver.set_failure_hash(): | 811 with api.tryserver.set_failure_hash(): |
| 819 return _RunStepsInternal(api) | 812 return _RunStepsInternal(api) |
| 820 | 813 |
| 821 | 814 |
| 822 def _sanitize_nonalpha(text): | 815 def _sanitize_nonalpha(text): |
| 823 return ''.join(c if c.isalnum() else '_' for c in text) | 816 return ''.join(c if c.isalnum() else '_' for c in text) |
| 824 | 817 |
| 825 | 818 |
| 826 def GenTests(api): | 819 def GenTests(api): |
| 827 canned_test = api.test_utils.canned_gtest_output | 820 canned_test = api.test_utils.canned_gtest_output |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1527 api.test_utils.canned_test_output(passing=True)) | 1520 api.test_utils.canned_test_output(passing=True)) |
| 1528 ) | 1521 ) |
| 1529 | 1522 |
| 1530 yield ( | 1523 yield ( |
| 1531 api.test('use_v8_patch_on_blink_trybot') + | 1524 api.test('use_v8_patch_on_blink_trybot') + |
| 1532 props(mastername='tryserver.blink', | 1525 props(mastername='tryserver.blink', |
| 1533 buildername='mac_blink_rel', | 1526 buildername='mac_blink_rel', |
| 1534 patch_project='v8') + | 1527 patch_project='v8') + |
| 1535 api.platform.name('mac') | 1528 api.platform.name('mac') |
| 1536 ) | 1529 ) |
| OLD | NEW |