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

Side by Side Diff: systrace/PRESUBMIT.py

Issue 1726783002: Copy adb_profile_chrome to catapult (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: add OWNERS file to bin files 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 | systrace/bin/OWNERS » ('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 5
6 def CheckChangeOnUpload(input_api, output_api): 6 def CheckChangeOnUpload(input_api, output_api):
7 return _CommonChecks(input_api, output_api) 7 return _CommonChecks(input_api, output_api)
8 8
9 9
10 def CheckChangeOnCommit(input_api, output_api): 10 def CheckChangeOnCommit(input_api, output_api):
11 return _CommonChecks(input_api, output_api) 11 return _CommonChecks(input_api, output_api)
12 12
13 13
14 def _CommonChecks(input_api, output_api): 14 def _CommonChecks(input_api, output_api):
15 results = [] 15 results = []
16 results += input_api.RunTests(input_api.canned_checks.GetPylint( 16 results += input_api.RunTests(input_api.canned_checks.GetPylint(
17 input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api), 17 input_api, output_api, extra_paths_list=_GetPathsToPrepend(input_api),
18 pylintrc='pylintrc')) 18 pylintrc='pylintrc'))
19 return results 19 return results
20 20
21 21
22 def _GetPathsToPrepend(input_api): 22 def _GetPathsToPrepend(input_api):
23 project_dir = input_api.PresubmitLocalPath() 23 project_dir = input_api.PresubmitLocalPath()
24 catapult_dir = input_api.os_path.join(project_dir, '..') 24 catapult_dir = input_api.os_path.join(project_dir, '..')
25 return [ 25 return [
26 project_dir, 26 project_dir,
27 27
28 input_api.os_path.join(catapult_dir, 'devil'),
29 input_api.os_path.join(catapult_dir, 'telemetry'),
30 input_api.os_path.join(catapult_dir, 'tracing'),
31
28 input_api.os_path.join(catapult_dir, 'third_party', 'mock'), 32 input_api.os_path.join(catapult_dir, 'third_party', 'mock'),
29 ] 33 ]
OLDNEW
« no previous file with comments | « no previous file | systrace/bin/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698