mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 975312 - [mozrunner] Runner.check_for_crashes() should support save_path and quiet parameters. r=ahal
This commit is contained in:
parent
26597c713b
commit
b27e259f1e
@ -154,11 +154,14 @@ class Runner(object):
|
||||
if getattr(self, 'profile', False):
|
||||
self.profile.reset()
|
||||
|
||||
def check_for_crashes(self, dump_directory=None, test_name=None):
|
||||
def check_for_crashes(self, dump_directory=None, dump_save_path=None,
|
||||
test_name=None, quiet=False):
|
||||
"""Check for a possible crash and output stack trace
|
||||
|
||||
:param dump_directory: Directory to search for minidump files
|
||||
:param dump_save_path: Directory to save the minidump files to
|
||||
:param test_name: Name to use in the crash output
|
||||
:param quiet: If `True` don't print the PROCESS-CRASH message to stdout
|
||||
|
||||
"""
|
||||
if not dump_directory:
|
||||
@ -168,7 +171,9 @@ class Runner(object):
|
||||
try:
|
||||
crashed = mozcrash.check_for_crashes(dump_directory,
|
||||
self.symbols_path,
|
||||
test_name=test_name)
|
||||
dump_save_path=dump_save_path,
|
||||
test_name=test_name,
|
||||
quiet=quiet)
|
||||
except:
|
||||
traceback.print_exc()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user