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

Side by Side Diff: services/shape_detection/PRESUBMIT.py

Issue 2677553003: Shape detection unittests mac (QR and Face) in GPU bots (Closed)
Patch Set: filter FaceDetectionImplMacTest Created 3 years, 10 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 | « services/shape_detection/DEPS ('k') | services/shape_detection/barcode_detection_impl_mac.mm » ('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 2017 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 shape_detection.
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 import re
12
13 def PostUploadHook(cl, change, output_api):
14 """git cl upload will call this hook after the issue is created/modified.
15
16 This hook adds extra try bots list to the CL description in order to run
17 the Mac GPU bots in addition to the usual CQ try bots.
18 """
19 rietveld_obj = cl.RpcServer()
20 issue = cl.issue
21 description = rietveld_obj.get_description(issue)
22 if re.search(r'^CQ_INCLUDE_TRYBOTS=.*', description, re.M | re.I):
23 return []
24
25 bots = [ 'master.tryserver.chromium.mac:mac_optional_gpu_tests_rel' ]
26
27 results = []
28 new_description = description
29 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots)
30 results.append(output_api.PresubmitNotifyResult(
31 'Automatically added optional Mac GPU tests to run on CQ.'))
32
33 if new_description != description:
34 rietveld_obj.update_description(issue, new_description)
35
36 return results
OLDNEW
« no previous file with comments | « services/shape_detection/DEPS ('k') | services/shape_detection/barcode_detection_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698