diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-01-31 16:33:43 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-02-06 16:33:22 +0000 |
commit | da51f56cc21233c2d30f0fe0d171727c3102b2e0 (patch) | |
tree | 4e579ab70ce4b19bee7984237f3ce05a96d59d83 /chromium/gpu/PRESUBMIT.py | |
parent | c8c2d1901aec01e934adf561a9fdf0cc776cdef8 (diff) | |
download | qtwebengine-chromium-da51f56cc21233c2d30f0fe0d171727c3102b2e0.tar.gz |
BASELINE: Update Chromium to 65.0.3525.40
Also imports missing submodules
Change-Id: I36901b7c6a325cda3d2c10cedb2186c25af3b79b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/gpu/PRESUBMIT.py')
-rw-r--r-- | chromium/gpu/PRESUBMIT.py | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/chromium/gpu/PRESUBMIT.py b/chromium/gpu/PRESUBMIT.py index db256710bf4..bca8cd77773 100644 --- a/chromium/gpu/PRESUBMIT.py +++ b/chromium/gpu/PRESUBMIT.py @@ -8,7 +8,7 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presubmit API built into depot_tools. """ -def PostUploadHook(cl, change, output_api): +def PostUploadHook(cl, _change, output_api): """git cl upload will call this hook after the issue is created/modified. This hook modifies the CL description in order to run extra GPU @@ -29,3 +29,33 @@ def PostUploadHook(cl, change, output_api): 'master.tryserver.chromium.android:android_optional_gpu_tests_rel', ], 'Automatically added optional GPU tests to run on CQ.') + +def CommonChecks(input_api, output_api): + import sys + + output = [] + sys_path_backup = sys.path + try: + sys.path = [ + input_api.PresubmitLocalPath() + ] + sys.path + disabled_warnings = [ + 'W0622', # redefined-builtin + 'R0923', # interface-not-implemented + ] + output.extend(input_api.canned_checks.RunPylint( + input_api, + output_api, + disabled_warnings=disabled_warnings)) + finally: + sys.path = sys_path_backup + + return output + + +def CheckChangeOnUpload(input_api, output_api): + return CommonChecks(input_api, output_api) + + +def CheckChangeOnCommit(input_api, output_api): + return CommonChecks(input_api, output_api) |