OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 | 6 |
7 """Parses and displays the contents of one or more autoserv result directories. | 7 """Parses and displays the contents of one or more autoserv result directories. |
8 | 8 |
9 This script parses the contents of one or more autoserv results folders and | 9 This script parses the contents of one or more autoserv results folders and |
10 generates test reports. | 10 generates test reports. |
11 """ | 11 """ |
12 | 12 |
13 | 13 |
14 import glob | 14 import glob |
15 import optparse | 15 import optparse |
16 import os | 16 import os |
17 import re | 17 import re |
18 import sys | 18 import sys |
19 | 19 |
20 sys.path.append(os.path.join(os.path.dirname(__file__), 'lib')) | 20 sys.path.append(os.path.join(os.path.dirname(__file__), 'lib')) |
21 from cros_build_lib import Color, Die | 21 from cros_build_lib import Color, Die |
22 | 22 |
23 _STDOUT_IS_TTY = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() | 23 _STDOUT_IS_TTY = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() |
24 | 24 |
25 # List of crashes which are okay to ignore. This list should almost always be | 25 # List of crashes which are okay to ignore. This list should almost always be |
26 # empty. If you add an entry, mark it with a TODO(<your name>) and the issue | 26 # empty. If you add an entry, mark it with a TODO(<your name>) and the issue |
27 # filed for the crash. | 27 # filed for the crash. |
28 _CRASH_WHITELIST = { | 28 _CRASH_WHITELIST = {} |
29 # TODO(dalecurtis): chromium-os:12212. Remove when resolved. | |
30 'chromeos-wm': ['sig 6'] | |
31 } | |
32 | 29 |
33 class ReportGenerator(object): | 30 class ReportGenerator(object): |
34 """Collects and displays data from autoserv results directories. | 31 """Collects and displays data from autoserv results directories. |
35 | 32 |
36 This class collects status and performance data from one or more autoserv | 33 This class collects status and performance data from one or more autoserv |
37 result directories and generates test reports. | 34 result directories and generates test reports. |
38 """ | 35 """ |
39 | 36 |
40 _KEYVAL_INDENT = 2 | 37 _KEYVAL_INDENT = 2 |
41 | 38 |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 if not args: | 318 if not args: |
322 parser.print_help() | 319 parser.print_help() |
323 Die('no result directories provided') | 320 Die('no result directories provided') |
324 | 321 |
325 generator = ReportGenerator(options, args) | 322 generator = ReportGenerator(options, args) |
326 generator.Run() | 323 generator.Run() |
327 | 324 |
328 | 325 |
329 if __name__ == '__main__': | 326 if __name__ == '__main__': |
330 main() | 327 main() |
OLD | NEW |