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

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

Issue 1565403005: Update gpu_tests to use cloud_storage from catapult. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use chromium_src_dir base path 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/__init__.py
diff --git a/content/test/gpu/gpu_tests/__init__.py b/content/test/gpu/gpu_tests/__init__.py
index 3b4df351fdb2b680fcfc75b209f1cd45b614f550..de02643a82080b48570135c026ba1f8671cbb87b 100644
--- a/content/test/gpu/gpu_tests/__init__.py
+++ b/content/test/gpu/gpu_tests/__init__.py
@@ -6,10 +6,16 @@ import os
import sys
def Init():
- telemetry_path = os.path.join(
- os.path.dirname(__file__),
- '..', '..', '..', '..', 'tools', 'telemetry')
- absolute_telemetry_path = os.path.abspath(telemetry_path)
- sys.path.append(absolute_telemetry_path)
+ chromium_src_dir = os.path.abspath(os.path.join(
+ os.path.dirname(__file__), '..', '..', '..', '..'))
+
+ telemetry_path = os.path.join(chromium_src_dir, 'tools', 'telemetry')
+ 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)
Init()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698