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

Side by Side Diff: content/test/gpu/PRESUBMIT.py

Issue 1644723002: Update presubmit in gpu tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | content/test/gpu/gpu_tests/cloud_storage_test_base.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 def _PyLintChecks(input_api, output_api): 5 def _PyLintChecks(input_api, output_api):
6 pylint_checks = input_api.canned_checks.GetPylint(input_api, output_api, 6 pylint_checks = input_api.canned_checks.GetPylint(input_api, output_api,
7 extra_paths_list=_GetPathsToPrepend(input_api), pylintrc='pylintrc') 7 extra_paths_list=_GetPathsToPrepend(input_api), pylintrc='pylintrc')
8 return input_api.RunTests(pylint_checks) 8 return input_api.RunTests(pylint_checks)
9 9
10 def _GetPathsToPrepend(input_api): 10 def _GetPathsToPrepend(input_api):
11 current_dir = input_api.PresubmitLocalPath() 11 current_dir = input_api.PresubmitLocalPath()
12 chromium_src_dir = input_api.os_path.join(current_dir, '..', '..', '..') 12 chromium_src_dir = input_api.os_path.join(current_dir, '..', '..', '..')
13 return [ 13 return [
14 input_api.os_path.join(current_dir, 'gpu_tests'), 14 input_api.os_path.join(current_dir, 'gpu_tests'),
15 input_api.os_path.join(chromium_src_dir, 'tools', 'perf'), 15 input_api.os_path.join(chromium_src_dir, 'tools', 'perf'),
16 input_api.os_path.join(chromium_src_dir, 'tools', 'telemetry'), 16 input_api.os_path.join(chromium_src_dir,
17 'third_party', 'catapult', 'telemetry'),
18 input_api.os_path.join(chromium_src_dir,
19 'third_party', 'catapult', 'catapult_base'),
17 ] 20 ]
18 21
19 def _WebGLTextExpectationsTests(input_api, output_api): 22 def _WebGLTextExpectationsTests(input_api, output_api):
20 if not input_api.AffectedFiles(): 23 if not input_api.AffectedFiles():
21 return [] 24 return []
22 25
23 cmd = [ 26 cmd = [
24 input_api.os_path.join(input_api.PresubmitLocalPath(), 'run_unittests.py'), 27 input_api.os_path.join(input_api.PresubmitLocalPath(), 'run_unittests.py'),
25 'gpu_tests', 28 'gpu_tests',
26 ] 29 ]
(...skipping 21 matching lines...) Expand all
48 results = [] 51 results = []
49 results.extend(_PyLintChecks(input_api, output_api)) 52 results.extend(_PyLintChecks(input_api, output_api))
50 results.extend(_WebGLTextExpectationsTests(input_api, output_api)) 53 results.extend(_WebGLTextExpectationsTests(input_api, output_api))
51 return results 54 return results
52 55
53 def CheckChangeOnCommit(input_api, output_api): 56 def CheckChangeOnCommit(input_api, output_api):
54 results = [] 57 results = []
55 results.extend(_PyLintChecks(input_api, output_api)) 58 results.extend(_PyLintChecks(input_api, output_api))
56 results.extend(_WebGLTextExpectationsTests(input_api, output_api)) 59 results.extend(_WebGLTextExpectationsTests(input_api, output_api))
57 return results 60 return results
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/cloud_storage_test_base.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698