Bug 1079774 - [mozrunner] Reduce time spent detecting crashes on devices. r=ahalberstadt

This commit is contained in:
Dave Hunt 2014-10-08 03:58:00 +02:00
parent c7737d55c9
commit 469399bd18

View File

@ -61,8 +61,9 @@ class Device(object):
remote_dump_dir = posixpath.join(self.app_ctx.remote_profile, 'minidumps')
local_dump_dir = tempfile.mkdtemp()
self.dm.getDirectory(remote_dump_dir, local_dump_dir)
for f in self.dm.listFiles(remote_dump_dir):
self.dm.removeFile(posixpath.join(remote_dump_dir, f))
if os.listdir(local_dump_dir):
for f in self.dm.listFiles(remote_dump_dir):
self.dm.removeFile(posixpath.join(remote_dump_dir, f))
return local_dump_dir
def setup_profile(self, profile):