Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: media/tools/layout_tests/layouttest_analyzer.py

Issue 10108024: Fix the bug in test analyzer when there is no result in result directory at the beginning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698