diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/bootstrap_commands.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/servo/bootstrap_commands.py b/python/servo/bootstrap_commands.py index 371f6c2e0ea..51ed2cd542c 100644 --- a/python/servo/bootstrap_commands.py +++ b/python/servo/bootstrap_commands.py @@ -70,6 +70,7 @@ class MachCommands(CommandBase): api_level = "25" sdk_build_tools = "25.0.2" system_image = "google_apis;armeabi-v7a" + avd_name = "servo-armv7" toolchains = path.join(self.context.topdir, "android-toolchains") @@ -109,6 +110,14 @@ class MachCommands(CommandBase): "emulator", image, ]) + subprocess.check_call([ + path.join(tools_path, "tools", "bin", "avdmanager"), + "create", "avd", + "--path", path.join(toolchains, "avd", avd_name), + "--name", avd_name, + "--package", image, + "--force", + ]) contents = os.listdir(ndk_path) assert len(contents) == 1 |