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

Unified Diff: build/android/test_runner.py

Issue 1316413003: [Android] Add a configurable environment for devil/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index 6c384b1c6a0be82ff5deedfd931d17a6df12369c..3eb7e44102cb4ae3542c0fbc4277da700680c9af 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -21,6 +21,7 @@ from devil.android import device_blacklist
from devil.android import device_errors
from devil.android import device_utils
from devil.android import ports
+import devil.env
from devil.utils import reraiser_thread
from devil.utils import run_tests_helper
@@ -117,6 +118,13 @@ def ProcessCommonOptions(args):
constants.SetOutputDirectory(args.output_directory)
if args.adb_path:
constants.SetAdbPath(args.adb_path)
+
+ devil.env.android_sdk = devil.env.android_sdk_config.AndroidSdkConfig(
jbudorick 2015/09/09 23:47:07 Configuring devil's environment is intentionally u
perezju 2015/09/10 09:45:48 Throwing some ideas: If the intention is that conf
+ root_path=constants.ANDROID_SDK_ROOT,
+ adb_path=args.adb_path)
+ devil.env.binaries = devil.env.binary_config.BinaryConfig(
+ binary_dir=constants.GetOutDirectory())
+
# Some things such as Forwarder require ADB to be in the environment path.
adb_dir = os.path.dirname(constants.GetAdbPath())
if adb_dir and adb_dir not in os.environ['PATH'].split(os.pathsep):
« build/android/devil/env/android_sdk_config.py ('K') | « build/android/pylib/forwarder.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698