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. |
(...skipping 10 matching lines...) Expand all Loading... |
21 sys.path.append(constants.CROSUTILS_LIB_DIR) | 21 sys.path.append(constants.CROSUTILS_LIB_DIR) |
22 from cros_build_lib import Color, Die | 22 from cros_build_lib import Color, Die |
23 | 23 |
24 _STDOUT_IS_TTY = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() | 24 _STDOUT_IS_TTY = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() |
25 | 25 |
26 # List of crashes which are okay to ignore. This list should almost always be | 26 # List of crashes which are okay to ignore. This list should almost always be |
27 # empty. If you add an entry, mark it with a TODO(<your name>) and the issue | 27 # empty. If you add an entry, mark it with a TODO(<your name>) and the issue |
28 # filed for the crash. | 28 # filed for the crash. |
29 _CRASH_WHITELIST = { | 29 _CRASH_WHITELIST = { |
30 # TODO(dalecurtis): Remove once http://crosbug.com/13678 is fixed. | 30 # TODO(dalecurtis): Remove once http://crosbug.com/13678 is fixed. |
31 'chromeos-wm': ['sig 6'] | 31 'chromeos-wm': ['sig 6'], |
| 32 |
| 33 # TODO(dalecurtis): Remove once http://crosbug.com/13753 is fixed. |
| 34 'SynTPEnh': ['sig 6'] |
32 } | 35 } |
33 | 36 |
34 | 37 |
35 class ResultCollector(object): | 38 class ResultCollector(object): |
36 """Collects status and performance data from an autoserv results directory.""" | 39 """Collects status and performance data from an autoserv results directory.""" |
37 | 40 |
38 def __init__(self, collect_perf=True, strip_text=''): | 41 def __init__(self, collect_perf=True, strip_text=''): |
39 """Initialize ResultsCollector class. | 42 """Initialize ResultsCollector class. |
40 | 43 |
41 Args: | 44 Args: |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 if not args: | 344 if not args: |
342 parser.print_help() | 345 parser.print_help() |
343 Die('no result directories provided') | 346 Die('no result directories provided') |
344 | 347 |
345 generator = ReportGenerator(options, args) | 348 generator = ReportGenerator(options, args) |
346 generator.Run() | 349 generator.Run() |
347 | 350 |
348 | 351 |
349 if __name__ == '__main__': | 352 if __name__ == '__main__': |
350 main() | 353 main() |
OLD | NEW |