OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 content/test/gpu. | 5 """Top-level presubmit script for content/test/gpu. |
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 depot_tools. | 8 for more details about the presubmit API built into depot_tools. |
9 """ | 9 """ |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 This hook adds extra try bots list to the CL description in order to run | 66 This hook adds extra try bots list to the CL description in order to run |
67 Blink tests in addition to CQ try bots. | 67 Blink tests in addition to CQ try bots. |
68 """ | 68 """ |
69 rietveld_obj = cl.RpcServer() | 69 rietveld_obj = cl.RpcServer() |
70 issue = cl.issue | 70 issue = cl.issue |
71 description = rietveld_obj.get_description(issue) | 71 description = rietveld_obj.get_description(issue) |
72 if re.search(r'^CQ_INCLUDE_TRYBOTS=.*', description, re.M | re.I): | 72 if re.search(r'^CQ_INCLUDE_TRYBOTS=.*', description, re.M | re.I): |
73 return [] | 73 return [] |
74 | 74 |
75 bots = [ | 75 bots = [ |
76 'tryserver.chromium.linux:linux_optional_gpu_tests_rel', | 76 'master.tryserver.chromium.linux:linux_optional_gpu_tests_rel', |
77 'tryserver.chromium.mac:mac_optional_gpu_tests_rel', | 77 'master.tryserver.chromium.mac:mac_optional_gpu_tests_rel', |
78 'tryserver.chromium.win:win_optional_gpu_tests_rel', | 78 'master.tryserver.chromium.win:win_optional_gpu_tests_rel', |
79 ] | 79 ] |
80 | 80 |
81 results = [] | 81 results = [] |
82 new_description = description | 82 new_description = description |
83 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots) | 83 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots) |
84 results.append(output_api.PresubmitNotifyResult( | 84 results.append(output_api.PresubmitNotifyResult( |
85 'Automatically added optional GPU tests to run on CQ.')) | 85 'Automatically added optional GPU tests to run on CQ.')) |
86 | 86 |
87 if new_description != description: | 87 if new_description != description: |
88 rietveld_obj.update_description(issue, new_description) | 88 rietveld_obj.update_description(issue, new_description) |
89 | 89 |
90 return results | 90 return results |
OLD | NEW |