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

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

Issue 2471733003: Update or remove any remaining references to viewvc/blink. (Closed)
Patch Set: Created 4 years, 1 month 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
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 from datetime import datetime 8 from datetime import datetime
9 import optparse 9 import optparse
10 import os 10 import os
11 import sys 11 import sys
12 import time 12 import time
13 13
14 import layouttest_analyzer_helpers 14 import layouttest_analyzer_helpers
15 from layouttest_analyzer_helpers import DEFAULT_REVISION_VIEW_URL 15 from layouttest_analyzer_helpers import DEFAULT_REVISION_VIEW_URL
16 import layouttests 16 import layouttests
17 from layouttests import DEFAULT_LAYOUTTEST_SVN_VIEW_LOCATION 17 from layouttests import DEFAULT_LAYOUTTEST_LOCATION
18 18
19 from test_expectations import TestExpectations 19 from test_expectations import TestExpectations
20 from trend_graph import TrendGraph 20 from trend_graph import TrendGraph
21 21
22 # Predefined result directory. 22 # Predefined result directory.
23 DEFAULT_RESULT_DIR = 'result' 23 DEFAULT_RESULT_DIR = 'result'
24 # TODO(shadi): Remove graph functions as they are not used any more. 24 # TODO(shadi): Remove graph functions as they are not used any more.
25 DEFAULT_GRAPH_FILE = os.path.join('graph', 'graph.html') 25 DEFAULT_GRAPH_FILE = os.path.join('graph', 'graph.html')
26 # TODO(shadi): Check if these files are needed any more. 26 # TODO(shadi): Check if these files are needed any more.
27 DEFAULT_STATS_CSV_FILENAME = 'stats.csv' 27 DEFAULT_STATS_CSV_FILENAME = 'stats.csv'
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 analyzer_result_map.result_map[test_group].iteritems()): 315 analyzer_result_map.result_map[test_group].iteritems()):
316 test_map[test_name] = value['desc'] 316 test_map[test_name] = value['desc']
317 test_str = '' 317 test_str = ''
318 links = '' 318 links = ''
319 if diff_map and diff_map[test_group]: 319 if diff_map and diff_map[test_group]:
320 for i in [0, 1]: 320 for i in [0, 1]:
321 for (name, _) in diff_map[test_group][i]: 321 for (name, _) in diff_map[test_group][i]:
322 test_str += name + ',' 322 test_str += name + ','
323 # This is link to test HTML in SVN. 323 # This is link to test HTML in SVN.
324 links += ('<a href="%s%s">%s</a>' % 324 links += ('<a href="%s%s">%s</a>' %
325 (DEFAULT_LAYOUTTEST_SVN_VIEW_LOCATION, name, name)) 325 (DEFAULT_LAYOUTTEST_LOCATION, name, name))
326 if test_str: 326 if test_str:
327 anno = '\'' + test_str + '\'' 327 anno = '\'' + test_str + '\''
328 # The annotation of passing rate is a union of all annotations. 328 # The annotation of passing rate is a union of all annotations.
329 passingrate_anno += anno 329 passingrate_anno += anno
330 if links: 330 if links:
331 links = '\'' + links + '\'' 331 links = '\'' + links + '\''
332 else: 332 else:
333 links = 'undefined' 333 links = 'undefined'
334 if test_group is 'whole': 334 if test_group is 'whole':
335 data_map[test_group] = (test_map, anno, links) 335 data_map[test_group] = (test_map, anno, links)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 # Report the result to dashboard. 470 # Report the result to dashboard.
471 if options.dashboard_file_location: 471 if options.dashboard_file_location:
472 UpdateDashboard(options.dashboard_file_location, options.test_group_name, 472 UpdateDashboard(options.dashboard_file_location, options.test_group_name,
473 data_map, layouttests.DEFAULT_LAYOUTTEST_LOCATION, rev, 473 data_map, layouttests.DEFAULT_LAYOUTTEST_LOCATION, rev,
474 rev_date, options.receiver_email_address, 474 rev_date, options.receiver_email_address,
475 email_content) 475 email_content)
476 476
477 477
478 if '__main__' == __name__: 478 if '__main__' == __name__:
479 main() 479 main()
OLDNEW
« no previous file with comments | « content/common/page_state_serialization.cc ('k') | media/tools/layout_tests/layouttest_analyzer_helpers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698