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 import constants | 20 import constants |
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. |
| 31 'chromeos-wm': ['sig 6'] |
| 32 } |
30 | 33 |
31 | 34 |
32 class ResultCollector(object): | 35 class ResultCollector(object): |
33 """Collects status and performance data from an autoserv results directory.""" | 36 """Collects status and performance data from an autoserv results directory.""" |
34 | 37 |
35 def __init__(self, collect_perf=True, strip_text=''): | 38 def __init__(self, collect_perf=True, strip_text=''): |
36 """Initialize ResultsCollector class. | 39 """Initialize ResultsCollector class. |
37 | 40 |
38 Args: | 41 Args: |
39 collect_perf: Should perf keyvals be collected? | 42 collect_perf: Should perf keyvals be collected? |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 if not args: | 341 if not args: |
339 parser.print_help() | 342 parser.print_help() |
340 Die('no result directories provided') | 343 Die('no result directories provided') |
341 | 344 |
342 generator = ReportGenerator(options, args) | 345 generator = ReportGenerator(options, args) |
343 generator.Run() | 346 generator.Run() |
344 | 347 |
345 | 348 |
346 if __name__ == '__main__': | 349 if __name__ == '__main__': |
347 main() | 350 main() |
OLD | NEW |