Skip to content

Commit

Permalink
Bug 1501562 - Add crash checking for fennec wpt r=jgraham
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D28161

--HG--
extra : moz-landing-system : lando
  • Loading branch information
KWierso committed Apr 23, 2019
1 parent 2d6921c commit e167dff
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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()

0 comments on commit e167dff

Please sign in to comment.