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

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

Issue 2710493003: Update HTTP-references to test-results to use HTTPS (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | media/tools/layout_tests/layouttest_analyzer_helpers.py » ('j') | 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 from datetime import datetime 8 from datetime import datetime
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 escaped_tg_name + '_' + tg + '.html') 372 escaped_tg_name + '_' + tg + '.html')
373 file_object = open(file_name, 'wb') 373 file_object = open(file_name, 'wb')
374 file_object.write('<table border="1">') 374 file_object.write('<table border="1">')
375 sorted_testnames = data_map[tg][0].keys() 375 sorted_testnames = data_map[tg][0].keys()
376 sorted_testnames.sort() 376 sorted_testnames.sort()
377 for testname in sorted_testnames: 377 for testname in sorted_testnames:
378 file_object.write(( 378 file_object.write((
379 '<tr><td><a href="%s">%s</a></td><td><a href="%s">dashboard</a>' 379 '<tr><td><a href="%s">%s</a></td><td><a href="%s">dashboard</a>'
380 '</td><td>%s</td></tr>') % ( 380 '</td><td>%s</td></tr>') % (
381 layouttest_root_path + testname, testname, 381 layouttest_root_path + testname, testname,
382 ('http://test-results.appspot.com/dashboards/' 382 ('https://test-results.appspot.com/dashboards/'
383 'flakiness_dashboard.html#tests=%s') % testname, 383 'flakiness_dashboard.html#tests=%s') % testname,
384 data_map[tg][0][testname])) 384 data_map[tg][0][testname]))
385 file_object.write('</table>') 385 file_object.write('</table>')
386 file_object.close() 386 file_object.close()
387 email_content_with_link = '' 387 email_content_with_link = ''
388 if email_content: 388 if email_content:
389 file_name = os.path.join(os.path.dirname(dashboard_file_location), 389 file_name = os.path.join(os.path.dirname(dashboard_file_location),
390 escaped_tg_name + '_email.html') 390 escaped_tg_name + '_email.html')
391 file_object = open(file_name, 'wb') 391 file_object = open(file_name, 'wb')
392 file_object.write(email_content) 392 file_object.write(email_content)
(...skipping 77 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 | « no previous file | media/tools/layout_tests/layouttest_analyzer_helpers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698