From 900bbd53edaa1443bf487a2bf1d4cd118462de66 Mon Sep 17 00:00:00 2001 From: Dale Curtis Date: Wed, 16 Feb 2011 14:33:06 -0800 Subject: [PATCH] Add crash whitelist for chromeos-wm: sig 6. Change-Id: I776b3b92c81f6e00b179766fd16a322af4c0379c BUG=chromium-os:12212 TEST=Ran against test logs for failed build. Review URL: http://codereview.chromium.org/6534006 --- generate_test_report.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/generate_test_report.py b/generate_test_report.py index 33ec0a6ead..d21ea5286d 100755 --- a/generate_test_report.py +++ b/generate_test_report.py @@ -22,6 +22,13 @@ from cros_build_lib import Color, Die _STDOUT_IS_TTY = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() +# List of crashes which are okay to ignore. This list should almost always be +# empty. If you add an entry, mark it with a TODO() and the issue +# filed for the crash. +_CRASH_WHITELIST = { + # TODO(dalecurtis): chromium-os:12212. Remove when resolved. + 'chromeos-wm': ['sig 6'] +} class ReportGenerator(object): """Collects and displays data from autoserv results directories. @@ -116,6 +123,9 @@ class ReportGenerator(object): crashes = [] regex = re.compile('Received crash notification for ([-\w]+).+ (sig \d+)') for match in regex.finditer(status_raw): + if (match.group(1) in _CRASH_WHITELIST and + match.group(2) in _CRASH_WHITELIST[match.group(1)]): + continue crashes.append('%s %s' % match.groups()) self._results[testdir] = {'crashes': crashes,