Bug 1191477 - Retry Android test job if unable to install an apk; r=kmoir

This commit is contained in:
Geoff Brown 2015-08-14 09:53:12 -06:00
Родитель f9ad8060cc
Коммит 48738d3244
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -645,13 +645,13 @@ class AndroidEmulatorTest(BlobUploadMixin, TestingMixin, EmulatorMixin, VCSMixin
# Install Fennec
install_ok = self._retry(3, 30, self._install_fennec_apk, "Install Fennec APK")
if not install_ok:
self.fatal('Failed to install %s on %s' % (self.installer_path, self.emulator["name"]))
self.fatal('INFRA-ERROR: Failed to install %s on %s' % (self.installer_path, self.emulator["name"]))
# Install Robocop if required
if self.test_suite.startswith('robocop'):
install_ok = self._retry(3, 30, self._install_robocop_apk, "Install Robocop APK")
if not install_ok:
self.fatal('Failed to install %s on %s' % (self.robocop_path, self.emulator["name"]))
self.fatal('INFRA-ERROR: Failed to install %s on %s' % (self.robocop_path, self.emulator["name"]))
self.info("Finished installing apps for %s" % self.emulator["name"])