OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium 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 """Main functions for the Layout Test Analyzer module.""" | 6 """Main functions for the Layout Test Analyzer module.""" |
7 | 7 |
8 import csv | 8 import csv |
9 from datetime import datetime | 9 from datetime import datetime |
10 import optparse | 10 import optparse |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 simple_rev_str = '\'' + simple_rev_str + '\'' | 292 simple_rev_str = '\'' + simple_rev_str + '\'' |
293 else: | 293 else: |
294 simple_rev_str = 'undefined' # GViz uses undefined for NONE. | 294 simple_rev_str = 'undefined' # GViz uses undefined for NONE. |
295 else: | 295 else: |
296 # Initial result should be written to tread-graph if there are no previous | 296 # Initial result should be written to tread-graph if there are no previous |
297 # results. | 297 # results. |
298 result_change = True | 298 result_change = True |
299 diff_map = None | 299 diff_map = None |
300 simple_rev_str = 'undefined' | 300 simple_rev_str = 'undefined' |
301 email_content = analyzer_result_map.ConvertToString(None, diff_map, | 301 email_content = analyzer_result_map.ConvertToString(None, diff_map, |
302 anno_map) | 302 anno_map, |
| 303 issue_detail_mode) |
303 return (result_change, diff_map, simple_rev_str, rev, rev_date, | 304 return (result_change, diff_map, simple_rev_str, rev, rev_date, |
304 email_content) | 305 email_content) |
305 | 306 |
306 | 307 |
307 def UpdateTrendGraph(start_time, analyzer_result_map, diff_map, simple_rev_str, | 308 def UpdateTrendGraph(start_time, analyzer_result_map, diff_map, simple_rev_str, |
308 trend_graph_location): | 309 trend_graph_location): |
309 """Update trend graph in GViz. | 310 """Update trend graph in GViz. |
310 | 311 |
311 Annotate the graph with revision information. | 312 Annotate the graph with revision information. |
312 | 313 |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 # Report the result to dashboard. | 497 # Report the result to dashboard. |
497 if options.dashboard_file_location: | 498 if options.dashboard_file_location: |
498 UpdateDashboard(options.dashboard_file_location, options.test_group_name, | 499 UpdateDashboard(options.dashboard_file_location, options.test_group_name, |
499 data_map, layouttests.DEFAULT_LAYOUTTEST_LOCATION, rev, | 500 data_map, layouttests.DEFAULT_LAYOUTTEST_LOCATION, rev, |
500 rev_date, options.receiver_email_address, | 501 rev_date, options.receiver_email_address, |
501 email_content) | 502 email_content) |
502 | 503 |
503 | 504 |
504 if '__main__' == __name__: | 505 if '__main__' == __name__: |
505 main() | 506 main() |
OLD | NEW |