Bug 1561737 - Log full exception traceback from android gtest; r=bc

Including the traceback info will include the exception name, like "ADBError" which
should trigger the android-em task retry; it also provides more debugging info.

Differential Revision: https://phabricator.services.mozilla.com/D36116

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Geoff Brown 2019-06-27 09:26:35 +00:00
Родитель aebd7e0393
Коммит ad79adad7c
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -16,6 +16,7 @@ import shutil
import sys import sys
import tempfile import tempfile
import time import time
import traceback
import mozcrash import mozcrash
import mozdevice import mozdevice
@ -387,6 +388,7 @@ def main():
log.info("gtest | Received keyboard interrupt") log.info("gtest | Received keyboard interrupt")
except Exception as e: except Exception as e:
log.error(str(e)) log.error(str(e))
traceback.print_exc()
if isinstance(e, mozdevice.ADBTimeoutError): if isinstance(e, mozdevice.ADBTimeoutError):
device_exception = True device_exception = True
finally: finally: