| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 'master.tryserver.chromium.linux:linux_optional_gpu_tests_rel', | 76 'master.tryserver.chromium.linux:linux_optional_gpu_tests_rel', |
| 77 'master.tryserver.chromium.mac:mac_optional_gpu_tests_rel', | 77 'master.tryserver.chromium.mac:mac_optional_gpu_tests_rel', |
| 78 'master.tryserver.chromium.win:win_optional_gpu_tests_rel', | 78 'master.tryserver.chromium.win:win_optional_gpu_tests_rel', |
| 79 'master.tryserver.chromium.android:android_optional_gpu_tests_rel', |
| 79 ] | 80 ] |
| 80 | 81 |
| 81 results = [] | 82 results = [] |
| 82 new_description = description | 83 new_description = description |
| 83 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots) | 84 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots) |
| 84 results.append(output_api.PresubmitNotifyResult( | 85 results.append(output_api.PresubmitNotifyResult( |
| 85 'Automatically added optional GPU tests to run on CQ.')) | 86 'Automatically added optional GPU tests to run on CQ.')) |
| 86 | 87 |
| 87 if new_description != description: | 88 if new_description != description: |
| 88 rietveld_obj.update_description(issue, new_description) | 89 rietveld_obj.update_description(issue, new_description) |
| 89 | 90 |
| 90 return results | 91 return results |
| OLD | NEW |