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

Unified Diff: content/test/gpu/gpu_tests/path_util.py

Issue 1896853003: Remove useless path additions of old Telemetry location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « content/test/gpu/gpu_tests/__init__.py ('k') | content/test/gpu/run_gpu_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/path_util.py
diff --git a/content/test/gpu/gpu_tests/path_util.py b/content/test/gpu/gpu_tests/path_util.py
index 1a4326950583dbab76404a4988d087d98cf66be9..e178d76c164a6e8ab7436224d26ae01d508f038c 100644
--- a/content/test/gpu/gpu_tests/path_util.py
+++ b/content/test/gpu/gpu_tests/path_util.py
@@ -19,3 +19,22 @@ def AddDirToPathIfNeeded(*path_parts):
path = os.path.abspath(os.path.join(*path_parts))
if os.path.isdir(path) and path not in sys.path:
sys.path.append(path)
+
+
+def SetupTelemetryPaths():
+ chromium_src_dir = GetChromiumSrcDir()
+
+ perf_path = os.path.join(chromium_src_dir, 'tools', 'perf')
+ absolute_perf_path = os.path.abspath(perf_path)
+
+ sys.path.append(absolute_perf_path)
+ from chrome_telemetry_build import chromium_config
+
+ telemetry_path = chromium_config.GetTelemetryDir()
+ if telemetry_path not in sys.path:
+ sys.path.append(telemetry_path)
+
+ catapult_base_path = os.path.join(
+ chromium_src_dir, 'third_party', 'catapult', 'catapult_base')
+ if catapult_base_path not in sys.path:
+ sys.path.append(catapult_base_path)
« no previous file with comments | « content/test/gpu/gpu_tests/__init__.py ('k') | content/test/gpu/run_gpu_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698