Bug 1524271 - [mozharness] improve mozharness android.py install_apk installation failure message, r=gbrown.
authorBob Clary <bclary@bclary.com>
Thu, 31 Jan 2019 20:35:56 -0800
changeset 456367 dd571576b11bea63719d7f178d4ea5e19305d196
parent 456366 3feead6581fcbfdcd9e82e0c2efc978486268dc9
child 456368 5f53c5571125b1c05187ceeaef7d21c30608e5b3
push idunknown
push userunknown
push dateunknown
reviewersgbrown
bugs1524271
milestone67.0a1
Bug 1524271 - [mozharness] improve mozharness android.py install_apk installation failure message, r=gbrown.
testing/mozharness/mozharness/mozilla/testing/android.py
--- a/testing/mozharness/mozharness/mozilla/testing/android.py
+++ b/testing/mozharness/mozharness/mozilla/testing/android.py
@@ -318,18 +318,21 @@ class AndroidMixin(object):
     def install_apk(self, apk):
         """
            Install the specified apk.
         """
         import mozdevice
         try:
             self.device.install_app(apk)
         except (mozdevice.ADBError, mozdevice.ADBTimeoutError):
-            self.fatal('INFRA-ERROR: Failed to install %s on %s' %
-                       (self.installer_path, self.device_name),
+            self.info('Failed to install %s on %s' %
+                      (self.installer_path, self.device_name),
+                      exc_info=1)
+            self.fatal('INFRA-ERROR: Failed to install %s' %
+                       self.installer_path,
                        EXIT_STATUS_DICT[TBPL_RETRY])
 
     def is_boot_completed(self):
         import mozdevice
         try:
             out = self.device.get_prop('sys.boot_completed', timeout=30)
             if out.strip() == '1':
                 return True