summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing Chen <chying@google.com>2016-07-06 11:01:39 -0700
committerYing Chen <chying@google.com>2016-07-06 11:01:39 -0700
commitc3d3cf8384fbb3d8f6c32d0c132834f8e5126193 (patch)
tree5013a9f80038f09740526eb285c1addabdd9119f
parent4ec5b67f757a4b09f28b2ffc9705a4736d60ce45 (diff)
downloadadt-infra-c3d3cf8384fbb3d8f6c32d0c132834f8e5126193.tar.gz
Define ANDROID_HOME for ui tests.
Change-Id: I08614b2a195e43a88520848b8d584ced25bde243
-rw-r--r--build/scripts/slave/recipes/adt/adt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/scripts/slave/recipes/adt/adt.py b/build/scripts/slave/recipes/adt/adt.py
index c073cf78..89b8ee5c 100644
--- a/build/scripts/slave/recipes/adt/adt.py
+++ b/build/scripts/slave/recipes/adt/adt.py
@@ -64,7 +64,8 @@ def RunSteps(api):
android_buildtools_dir = os.path.join(android_sdk_home, 'build-tools', '23.0.2')
env_path += [android_tools_dir, android_platform_dir, android_buildtools_dir]
env = {'PATH': api.path.pathsep.join(env_path),
- 'ANDROID_SDK_ROOT': android_sdk_home}
+ 'ANDROID_SDK_ROOT': android_sdk_home,
+ 'ANDROID_HOME': android_sdk_home}
# Find emulator script based on build directory
# Emulator scripts are located [project root]/emu_test