Exclude fake crash reporter directories from report.

Change-Id: I11357f7196b66f3e879e68efa5366af115f3992b

BUG=8192
TEST=Ran it with results from a test with crash reports in it.

Review URL: http://codereview.chromium.org/4156003
This commit is contained in:
Chris Sosa 2010-10-26 14:36:40 -07:00
parent 3b39a54ea3
commit a8860e4572

View File

@ -98,6 +98,10 @@ class ReportGenerator(object):
if not os.path.isfile(status_file):
return
# Remove false positives that are missing a debug dir.
if not os.path.exists(os.path.join(testdir, 'debug')):
return
status_raw = open(status_file, 'r').read()
status = 'FAIL'
if (re.search(r'GOOD.+completed successfully', status_raw) and