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

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

Issue 2300653002: [tools/perf] Update code to reference py_utils.cloud_storage (Closed)
Patch Set: update Created 4 years, 3 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
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 """Top-level presubmit script for content/test/gpu. 5 """Top-level presubmit script for content/test/gpu.
6 6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
8 for more details about the presubmit API built into depot_tools. 8 for more details about the presubmit API built into depot_tools.
9 """ 9 """
10 10
11 import re 11 import re
12 12
13 def _GetPathsToPrepend(input_api): 13 def _GetPathsToPrepend(input_api):
14 current_dir = input_api.PresubmitLocalPath() 14 current_dir = input_api.PresubmitLocalPath()
15 chromium_src_dir = input_api.os_path.join(current_dir, '..', '..', '..') 15 chromium_src_dir = input_api.os_path.join(current_dir, '..', '..', '..')
16 return [ 16 return [
17 input_api.os_path.join(current_dir, 'gpu_tests'), 17 input_api.os_path.join(current_dir, 'gpu_tests'),
18 input_api.os_path.join(chromium_src_dir, 'tools', 'perf'), 18 input_api.os_path.join(chromium_src_dir, 'tools', 'perf'),
19 input_api.os_path.join(chromium_src_dir, 19 input_api.os_path.join(chromium_src_dir,
20 'third_party', 'catapult', 'telemetry'), 20 'third_party', 'catapult', 'telemetry'),
21 input_api.os_path.join(chromium_src_dir, 21 input_api.os_path.join(chromium_src_dir,
22 'third_party', 'catapult', 'catapult_base'), 22 'third_party', 'catapult', 'common', 'py_utils'),
23 ] 23 ]
24 24
25 def _GpuUnittestsArePassingCheck(input_api, output_api): 25 def _GpuUnittestsArePassingCheck(input_api, output_api):
26 if not input_api.AffectedFiles(): 26 if not input_api.AffectedFiles():
27 return [] 27 return []
28 28
29 cmd = [ 29 cmd = [
30 input_api.os_path.join(input_api.PresubmitLocalPath(), 'run_unittests.py'), 30 input_api.os_path.join(input_api.PresubmitLocalPath(), 'run_unittests.py'),
31 'gpu_tests', 31 'gpu_tests',
32 ] 32 ]
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 results = [] 82 results = []
83 new_description = description 83 new_description = description
84 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots) 84 new_description += '\nCQ_INCLUDE_TRYBOTS=%s' % ';'.join(bots)
85 results.append(output_api.PresubmitNotifyResult( 85 results.append(output_api.PresubmitNotifyResult(
86 'Automatically added optional GPU tests to run on CQ.')) 86 'Automatically added optional GPU tests to run on CQ.'))
87 87
88 if new_description != description: 88 if new_description != description:
89 rietveld_obj.update_description(issue, new_description) 89 rietveld_obj.update_description(issue, new_description)
90 90
91 return results 91 return results
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698