From ad79adad7c727add6df8663081c7fe3360ab9bd7 Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Thu, 27 Jun 2019 09:26:35 +0000 Subject: [PATCH] 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 --- testing/gtest/remotegtests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/gtest/remotegtests.py b/testing/gtest/remotegtests.py index aa6c01f25ab0..7a6b7ffb4433 100644 --- a/testing/gtest/remotegtests.py +++ b/testing/gtest/remotegtests.py @@ -16,6 +16,7 @@ import shutil import sys import tempfile import time +import traceback import mozcrash import mozdevice @@ -387,6 +388,7 @@ def main(): log.info("gtest | Received keyboard interrupt") except Exception as e: log.error(str(e)) + traceback.print_exc() if isinstance(e, mozdevice.ADBTimeoutError): device_exception = True finally: