Closed Bug 829773 Opened 12 years ago Closed 12 years ago

mozcrash should return sooner if there are no minidumps to process

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

We do a few things before checking for number of minidumps, that are irrelevant if we end up not finding any. We should move the minidump check earlier.
Attached patch Patch v1Splinter Review
Attachment #701302 - Flags: review?(ted)
Comment on attachment 701302 [details] [diff] [review] Patch v1 Review of attachment 701302 [details] [diff] [review]: ----------------------------------------------------------------- ::: mozcrash/mozcrash/mozcrash.py @@ +71,5 @@ > > Returns True if any minidumps were found, False otherwise. > """ > + dumps = glob.glob(os.path.join(dump_directory, '*.dmp')) > + if len(dumps) == 0: You can just change this to "if not dumps:" while you're here. @@ +89,1 @@ > remove_symbols = False nuke this trailing space while you're at it.
Attachment #701302 - Flags: review?(ted) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: