| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in | 6 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in |
| 7 the src/testing/buildbot directory. Maintaining these files by hand is | 7 the src/testing/buildbot directory. Maintaining these files by hand is |
| 8 too unwieldy. | 8 too unwieldy. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 result = copy.deepcopy(NON_SWARMED_GTESTS[test]) | 2193 result = copy.deepcopy(NON_SWARMED_GTESTS[test]) |
| 2194 result['name'] = test | 2194 result['name'] = test |
| 2195 else: | 2195 else: |
| 2196 if not 'swarming' in result: | 2196 if not 'swarming' in result: |
| 2197 result['swarming'] = {} | 2197 result['swarming'] = {} |
| 2198 result['swarming'].update({ | 2198 result['swarming'].update({ |
| 2199 'can_use_on_swarming_builders': tester_config['swarming'], | 2199 'can_use_on_swarming_builders': tester_config['swarming'], |
| 2200 'dimension_sets': tester_config['swarming_dimensions'] | 2200 'dimension_sets': tester_config['swarming_dimensions'] |
| 2201 }) | 2201 }) |
| 2202 if is_android(tester_config): | 2202 if is_android(tester_config): |
| 2203 # Override the isolate target to get rid of any "_apk" suffix | |
| 2204 # that would be added by the recipes. | |
| 2205 if 'test' in result: | |
| 2206 result['override_isolate_target'] = result['test'] | |
| 2207 else: | |
| 2208 result['override_isolate_target'] = result['name'] | |
| 2209 # Integrate with the unified logcat system. | 2203 # Integrate with the unified logcat system. |
| 2210 result['swarming'].update({ | 2204 result['swarming'].update({ |
| 2211 'cipd_packages': [ | 2205 'cipd_packages': [ |
| 2212 { | 2206 { |
| 2213 'cipd_package': 'infra/tools/luci/logdog/butler/${platform}', | 2207 'cipd_package': 'infra/tools/luci/logdog/butler/${platform}', |
| 2214 'location': 'bin', | 2208 'location': 'bin', |
| 2215 'revision': 'git_revision:ff387eadf445b24c935f1cf7d6ddd279f8a6b04c' | 2209 'revision': 'git_revision:ff387eadf445b24c935f1cf7d6ddd279f8a6b04c' |
| 2216 } | 2210 } |
| 2217 ], | 2211 ], |
| 2218 'output_links': [ | 2212 'output_links': [ |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2404 install_parent_links(WATERFALL) | 2398 install_parent_links(WATERFALL) |
| 2405 install_parent_links(V8_FYI_WATERFALL) | 2399 install_parent_links(V8_FYI_WATERFALL) |
| 2406 | 2400 |
| 2407 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json') | 2401 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json') |
| 2408 generate_all_tests(WATERFALL, 'chromium.gpu.json') | 2402 generate_all_tests(WATERFALL, 'chromium.gpu.json') |
| 2409 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json') | 2403 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json') |
| 2410 return 0 | 2404 return 0 |
| 2411 | 2405 |
| 2412 if __name__ == "__main__": | 2406 if __name__ == "__main__": |
| 2413 sys.exit(main()) | 2407 sys.exit(main()) |
| OLD | NEW |