| 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 infra.libs.infra_types import freeze | 7 from recipe_engine.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', |
| 15 'gclient', | 16 'gclient', |
| 16 'gpu', | 17 'gpu', |
| 17 'isolate', | 18 '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 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 override_bot_type='builder_tester') | 705 override_bot_type='builder_tester') |
| 706 | 706 |
| 707 if not tests: | 707 if not tests: |
| 708 return | 708 return |
| 709 | 709 |
| 710 api.chromium_tests.run_tests_and_deapply_as_needed(mastername, api, tests, | 710 api.chromium_tests.run_tests_and_deapply_as_needed(mastername, api, tests, |
| 711 bot_update_step) | 711 bot_update_step) |
| 712 | 712 |
| 713 | 713 |
| 714 def RunSteps(api): | 714 def RunSteps(api): |
| 715 # build/tests/masters_recipes_tests.py needs to manipulate the BUILDERS |
| 716 # dict, so we provide an API to dump it here. |
| 717 if api.properties.get('dump_builders'): # pragma: no cover |
| 718 api.file.copy('Dump BUILDERS dict', |
| 719 api.json.input(BUILDERS), api.properties['dump_builders']) |
| 720 return |
| 721 |
| 715 with api.tryserver.set_failure_hash(): | 722 with api.tryserver.set_failure_hash(): |
| 716 return _RunStepsInternal(api) | 723 return _RunStepsInternal(api) |
| 717 | 724 |
| 718 | 725 |
| 719 def _sanitize_nonalpha(text): | 726 def _sanitize_nonalpha(text): |
| 720 return ''.join(c if c.isalnum() else '_' for c in text) | 727 return ''.join(c if c.isalnum() else '_' for c in text) |
| 721 | 728 |
| 722 | 729 |
| 723 def GenTests(api): | 730 def GenTests(api): |
| 724 canned_test = api.test_utils.canned_gtest_output | 731 canned_test = api.test_utils.canned_gtest_output |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1424 api.test_utils.canned_test_output(passing=True)) | 1431 api.test_utils.canned_test_output(passing=True)) |
| 1425 ) | 1432 ) |
| 1426 | 1433 |
| 1427 yield ( | 1434 yield ( |
| 1428 api.test('use_v8_patch_on_blink_trybot') + | 1435 api.test('use_v8_patch_on_blink_trybot') + |
| 1429 props(mastername='tryserver.blink', | 1436 props(mastername='tryserver.blink', |
| 1430 buildername='mac_blink_rel', | 1437 buildername='mac_blink_rel', |
| 1431 patch_project='v8') + | 1438 patch_project='v8') + |
| 1432 api.platform.name('mac') | 1439 api.platform.name('mac') |
| 1433 ) | 1440 ) |
| OLD | NEW |