Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: modules/webgl/PRESUBMIT.py

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/webgl/OESVertexArrayObject.idl ('k') | modules/webgl/WebGL2RenderingContext.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """Top-level presubmit script for gpu.
6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8 for more details about the presubmit API built into depot_tools.
9 """
10
11
12 import re
13
14
15 def PostUploadHook(cl, change, output_api):
16 """git cl upload will call this hook after the issue is created/modified.
17
18 This hook adds extra try bots list to the CL description in order to run
19 extra GPU tests in addition to CQ try bots.
20 """
21 rietveld_obj = cl.RpcServer()
22 issue = cl.issue
23 description = rietveld_obj.get_description(issue)
24 if re.search(r'^CQ_INCLUDE_TRYBOTS=.*', description, re.M | re.I):
25 return []
26
27 bots = [
28 'tryserver.chromium.win:win_optional_gpu_tests_rel',
29 'tryserver.chromium.mac:mac_optional_gpu_tests_rel',
30 ]
31
32 results = []
33 new_description = description
34 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots)
35 results.append(output_api.PresubmitNotifyResult(
36 'Automatically added optional GPU tests to run on CQ.'))
37
38 if new_description != description:
39 rietveld_obj.update_description(issue, new_description)
40
41 return results
OLDNEW
« no previous file with comments | « modules/webgl/OESVertexArrayObject.idl ('k') | modules/webgl/WebGL2RenderingContext.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698