diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-05-09 14:22:11 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-05-09 15:11:45 +0000 |
commit | 2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c (patch) | |
tree | e75f511546c5fd1a173e87c1f9fb11d7ac8d1af3 /chromium/gpu/PRESUBMIT.py | |
parent | a4f3d46271c57e8155ba912df46a05559d14726e (diff) | |
download | qtwebengine-chromium-2ddb2d3e14eef3de7dbd0cef553d669b9ac2361c.tar.gz |
BASELINE: Update Chromium to 51.0.2704.41
Also adds in all smaller components by reversing logic for exclusion.
Change-Id: Ibf90b506e7da088ea2f65dcf23f2b0992c504422
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'chromium/gpu/PRESUBMIT.py')
-rw-r--r-- | chromium/gpu/PRESUBMIT.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/chromium/gpu/PRESUBMIT.py b/chromium/gpu/PRESUBMIT.py new file mode 100644 index 00000000000..034a9d8cdb9 --- /dev/null +++ b/chromium/gpu/PRESUBMIT.py @@ -0,0 +1,40 @@ +# Copyright (c) 2016 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Top-level presubmit script for gpu. + +See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts +for more details about the presubmit API built into depot_tools. +""" + +import re + +def PostUploadHook(cl, change, output_api): + """git cl upload will call this hook after the issue is created/modified. + + This hook adds extra try bots list to the CL description in order to run + Blink tests in addition to CQ try bots. + """ + rietveld_obj = cl.RpcServer() + issue = cl.issue + description = rietveld_obj.get_description(issue) + if re.search(r'^CQ_INCLUDE_TRYBOTS=.*', description, re.M | re.I): + return [] + + bots = [ + 'tryserver.chromium.linux:linux_optional_gpu_tests_rel', + 'tryserver.chromium.mac:mac_optional_gpu_tests_rel', + 'tryserver.chromium.win:win_optional_gpu_tests_rel', + ] + + results = [] + new_description = description + new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots) + results.append(output_api.PresubmitNotifyResult( + 'Automatically added optional GPU tests to run on CQ.')) + + if new_description != description: + rietveld_obj.update_description(issue, new_description) + + return results |