OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import os | 5 import os |
6 import re | |
7 import sys | 6 import sys |
8 | 7 |
9 def _GetTelemetryPath(input_api): | 8 def _GetTelemetryPath(input_api): |
10 return os.path.join( | 9 return os.path.join( |
11 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname( | 10 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname( |
12 input_api.PresubmitLocalPath())))), 'tools', 'telemetry') | 11 input_api.PresubmitLocalPath())))), 'tools', 'telemetry') |
13 | 12 |
14 def LoadSupport(input_api): | 13 def LoadSupport(input_api): |
15 if 'cloud_storage' not in globals(): | 14 if 'cloud_storage' not in globals(): |
16 # Avoid leaking changes to global sys.path. | 15 # Avoid leaking changes to global sys.path. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 80 |
82 | 81 |
83 def CheckChangeOnUpload(input_api, output_api): | 82 def CheckChangeOnUpload(input_api, output_api): |
84 results = _VerifyFilesInCloud(input_api, output_api) | 83 results = _VerifyFilesInCloud(input_api, output_api) |
85 return results | 84 return results |
86 | 85 |
87 | 86 |
88 def CheckChangeOnCommit(input_api, output_api): | 87 def CheckChangeOnCommit(input_api, output_api): |
89 results = _VerifyFilesInCloud(input_api, output_api) | 88 results = _VerifyFilesInCloud(input_api, output_api) |
90 return results | 89 return results |
OLD | NEW |