Bug 969146 - DeviceRunner should always check for crashes onFinish, r=davehunt

This commit is contained in:
Andrew Halberstadt 2014-08-14 10:24:47 -04:00
parent 2190b8ceed
commit bfe983d00f

View File

@ -37,6 +37,7 @@ class DeviceRunner(BaseRunner):
process_args = {'stream': sys.stdout,
'processOutputLine': self.on_output,
'onFinish': self.on_finish,
'onTimeout': self.on_timeout }
process_args.update(kwargs.get('process_args') or {})
@ -122,6 +123,9 @@ class DeviceRunner(BaseRunner):
print(msg % (self.last_test, timeout))
self.check_for_crashes()
def on_finish(self):
self.check_for_crashes()
def check_for_crashes(self):
dump_dir = self.device.pull_minidumps()
BaseRunner.check_for_crashes(self, dump_directory=dump_dir, test_name=self.last_test)