From e167dffa806965e6683099dc5a611d2cfd4c58e8 Mon Sep 17 00:00:00 2001 From: Wes Kocher Date: Tue, 23 Apr 2019 21:03:13 +0000 Subject: [PATCH] Bug 1501562 - Add crash checking for fennec wpt r=jgraham Differential Revision: https://phabricator.services.mozilla.com/D28161 --HG-- extra : moz-landing-system : lando --- .../tests/tools/wptrunner/wptrunner/browsers/fennec.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/fennec.py b/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/fennec.py index f54bdc1b901d..9414ff230d47 100644 --- a/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/fennec.py +++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/fennec.py @@ -111,6 +111,7 @@ def __init__(self, logger, prefs_root, test_type, package_name=None, self.device_serial = device_serial self.tests_root = kwargs["tests_root"] self.install_fonts = kwargs["install_fonts"] + self.stackwalk_binary = kwargs["stackwalk_binary"] @property def package_name(self): @@ -221,3 +222,8 @@ def stop(self, force=False): # browser to shut down. This allows the leak log to be written self.runner.stop() self.logger.debug("stopped") + + def check_crash(self, process, test): + if not os.environ.get("MINIDUMP_STACKWALK", "") and self.stackwalk_binary: + os.environ["MINIDUMP_STACKWALK"] = self.stackwalk_binary + return self.runner.check_for_crashes()