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

Unified Diff: tools/perf/core/path_util.py

Issue 1579743002: [Telemetry] Update telemetry_unittests to use tools/perf/run_telemetry_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Marc's comments 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 | « tools/perf/chrome_telemetry_build/chromium_config.py ('k') | tools/perf/record_wpr » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/core/path_util.py
diff --git a/tools/perf/core/path_util.py b/tools/perf/core/path_util.py
index b3aee1e77a91ba0f7b06c5d6348616498d0606a2..77ea275fd1a67149ee806a5cbf7835816084cabd 100644
--- a/tools/perf/core/path_util.py
+++ b/tools/perf/core/path_util.py
@@ -3,21 +3,28 @@
# found in the LICENSE file.
import os
+import sys
+
+sys.path.insert(1, os.path.join(os.path.abspath(__file__), '..', '..'))
+
+from chrome_telemetry_build import chromium_config
def GetChromiumSrcDir():
- return os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
- os.path.abspath(__file__)))))
+ return chromium_config.GetChromiumSrcDir()
+
def GetTelemetryDir():
- return os.path.join(GetChromiumSrcDir(), 'tools', 'telemetry')
+ return chromium_config.GetTelemetryDir()
+
def GetPerfDir():
return os.path.join(GetChromiumSrcDir(), 'tools', 'perf')
+
def GetPerfStorySetsDir():
return os.path.join(GetPerfDir(), 'page_sets')
+
def GetPerfBenchmarksDir():
return os.path.join(GetPerfDir(), 'benchmarks')
-
« no previous file with comments | « tools/perf/chrome_telemetry_build/chromium_config.py ('k') | tools/perf/record_wpr » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698