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

Unified Diff: tools/perf/PRESUBMIT.py

Issue 1568103002: Update tools/perf to use cloud_storage from catapult. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/perf/fetch_benchmark_deps.py » ('j') | tools/perf/profile_creators/__init__.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/PRESUBMIT.py
diff --git a/tools/perf/PRESUBMIT.py b/tools/perf/PRESUBMIT.py
index 1b7d74f8ddb6774fa58ddde29c7aed1b5385f299..c606204c6405cd223318dec88a632dc0b786df94 100644
--- a/tools/perf/PRESUBMIT.py
+++ b/tools/perf/PRESUBMIT.py
@@ -39,8 +39,10 @@ def _CheckWprShaFiles(input_api, output_api):
"""Check whether the wpr sha files have matching URLs."""
old_sys_path = sys.path
try:
- # TODO: The cloud_storage module is in telemetry.
- sys.path = [os.path.join('..', 'telemetry')] + sys.path
+ perf_dir = input_api.PresubmitLocalPath()
+ catapult_path = os.path.abspath(os.path.join(
+ perf_dir, '..', '..', 'third_party', 'catapult', 'catapult_base'))
+ sys.path.insert(1, catapult_path)
from catapult_base import cloud_storage
finally:
sys.path = old_sys_path
« no previous file with comments | « no previous file | tools/perf/fetch_benchmark_deps.py » ('j') | tools/perf/profile_creators/__init__.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698