Skip to content

Commit

Permalink
Bug 1093328 - Limit crashreports to first 10 minidumps; r=ted
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrownmozilla committed Nov 4, 2014
1 parent eea178f commit 65d6cce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testing/mozbase/mozcrash/mozcrash/mozcrash.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ def dump_files(self):
if self._dump_files is None:
self._dump_files = [(path, os.path.splitext(path)[0] + '.extra') for path in
glob.glob(os.path.join(self.dump_directory, '*.dmp'))]
max_dumps = 10
if len(self._dump_files) > max_dumps:
self.logger.warning("Found %d dump files -- limited to %d!" % (len(self._dump_files), max_dumps))
del self._dump_files[max_dumps:]

return self._dump_files

@property
Expand Down

0 comments on commit 65d6cce

Please sign in to comment.