Bug 1231491 - Warn when android-emulator run from a non-Android context; r=jmaher

This commit is contained in:
Geoff Brown 2015-12-16 13:59:09 -07:00
Родитель a6d6d5ef55
Коммит 66ccc940ca
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -255,6 +255,15 @@ class AndroidEmulatorCommands(MachCommandBase):
self.log(logging.WARN, "emulator", {},
"Unable to verify that emulator is running.")
if conditions.is_android(self):
self.log(logging.INFO, "emulator", {},
"Use 'mach install' to install or update Firefox on your emulator.")
else:
self.log(logging.WARN, "emulator", {},
"No Firefox for Android build detected.\n"
"Switch to a Firefox for Android build context or use 'mach bootstrap'\n"
"to setup an Android build environment.")
if wait:
self.log(logging.INFO, "emulator", {},
"Waiting for Android emulator to close...")