Add ./mach test-android-startup

This commit is contained in:
Simon Sapin 2018-06-29 23:27:31 +02:00
parent bee3fd09c2
commit eecbe83750
3 changed files with 93 additions and 7 deletions

View file

@ -177,10 +177,8 @@ class PostBuildCommands(CommandBase):
help="Command-line arguments to be passed through to the emulator")
def android_emulator(self, args=None):
if not args:
print("Pass at least an AVD name such as @servo-arm or @servo-x86")
return 1
env = self.build_env()
emulator = path.join(env["ANDROID_SDK"], "emulator", "emulator")
print("AVDs created by `./mach bootstrap-android` are servo-arm and servo-x86.")
emulator = self.android_emulator_path(self.build_env())
return subprocess.call([emulator] + args)
@Command('rr-record',