| 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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 if 'swarming_dimension_sets' in tc: | 1435 if 'swarming_dimension_sets' in tc: |
| 1436 if not matches_swarming_dimensions(tester_config, | 1436 if not matches_swarming_dimensions(tester_config, |
| 1437 tc['swarming_dimension_sets']): | 1437 tc['swarming_dimension_sets']): |
| 1438 return False | 1438 return False |
| 1439 if is_android(tester_config): | 1439 if is_android(tester_config): |
| 1440 if not tc.get('allow_on_android', False): | 1440 if not tc.get('allow_on_android', False): |
| 1441 return False | 1441 return False |
| 1442 return True | 1442 return True |
| 1443 | 1443 |
| 1444 def should_run_on_tester(tester_name, tester_config, test_config, is_fyi): | 1444 def should_run_on_tester(tester_name, tester_config, test_config, is_fyi): |
| 1445 # TODO(jmadill): Re-enable when n5x fixed. See http://crbug.com/672502. | |
| 1446 if 'Nexus 5X' in tester_name: | |
| 1447 return False | |
| 1448 # Check if this config is disabled on this tester | 1445 # Check if this config is disabled on this tester |
| 1449 if 'disabled_tester_configs' in test_config: | 1446 if 'disabled_tester_configs' in test_config: |
| 1450 for dtc in test_config['disabled_tester_configs']: | 1447 for dtc in test_config['disabled_tester_configs']: |
| 1451 if tester_config_matches_tester(tester_name, tester_config, dtc, is_fyi, | 1448 if tester_config_matches_tester(tester_name, tester_config, dtc, is_fyi, |
| 1452 False): | 1449 False): |
| 1453 return False | 1450 return False |
| 1454 if 'tester_configs' in test_config: | 1451 if 'tester_configs' in test_config: |
| 1455 for tc in test_config['tester_configs']: | 1452 for tc in test_config['tester_configs']: |
| 1456 if tester_config_matches_tester(tester_name, tester_config, tc, is_fyi, | 1453 if tester_config_matches_tester(tester_name, tester_config, tc, is_fyi, |
| 1457 True): | 1454 True): |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1655 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) | 1652 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) |
| 1656 fp.write('\n') | 1653 fp.write('\n') |
| 1657 | 1654 |
| 1658 def main(): | 1655 def main(): |
| 1659 generate_all_tests(FYI_WATERFALL, True) | 1656 generate_all_tests(FYI_WATERFALL, True) |
| 1660 generate_all_tests(WATERFALL, False) | 1657 generate_all_tests(WATERFALL, False) |
| 1661 return 0 | 1658 return 0 |
| 1662 | 1659 |
| 1663 if __name__ == "__main__": | 1660 if __name__ == "__main__": |
| 1664 sys.exit(main()) | 1661 sys.exit(main()) |
| OLD | NEW |