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

Unified Diff: telemetry/telemetry/internal/util/binary_manager.py

Issue 2592803004: Initialize devil_chromium when in chromium checkout.
Patch Set: Created 4 years 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: telemetry/telemetry/internal/util/binary_manager.py
diff --git a/telemetry/telemetry/internal/util/binary_manager.py b/telemetry/telemetry/internal/util/binary_manager.py
index c4d17678bb5ea5c9fc83f30554504c295d624e15..c2c17ffe3c25b87373809902ec22aeb4fdc3f277 100644
--- a/telemetry/telemetry/internal/util/binary_manager.py
+++ b/telemetry/telemetry/internal/util/binary_manager.py
@@ -14,6 +14,7 @@ from telemetry.core import exceptions
from telemetry.core import util
from telemetry.core import platform as platform_module
+import sys
TELEMETRY_PROJECT_CONFIG = os.path.join(
util.GetTelemetryDir(), 'telemetry', 'internal', 'binary_dependencies.json')
@@ -50,6 +51,13 @@ def InitDependencyManager(client_configs):
configs += [TELEMETRY_PROJECT_CONFIG, CHROME_BINARY_CONFIG]
_binary_manager = binary_manager.BinaryManager(configs)
+ if "devil_chromium" in sys.modules:
+ for chromium_out_dir in util.GetBuildDirectories():
+ if os.path.exists(chromium_out_dir):
+ # pylint: disable=undefined-variable
+ devil_chromium.Initialize(output_directory=chromium_out_dir)
+ break
+
devil_env.config.Initialize()
« 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