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

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

Issue 10261034: Per issue 125757, added more test cases to be monitored in the layout test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified based on CR comments and removed svg files from monitoring. Created 8 years, 7 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
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 if not test_group_file_location and not test_group_name: 136 if not test_group_file_location and not test_group_name:
137 print ('Either --test-group-name or --test_group_file_location must be ' 137 print ('Either --test-group-name or --test_group_file_location must be '
138 'specified. Exiting this program.') 138 'specified. Exiting this program.')
139 sys.exit() 139 sys.exit()
140 filter_names = [] 140 filter_names = []
141 if test_group_file_location and os.path.exists(test_group_file_location): 141 if test_group_file_location and os.path.exists(test_group_file_location):
142 filter_names = layouttests.LayoutTests.GetLayoutTestNamesFromCSV( 142 filter_names = layouttests.LayoutTests.GetLayoutTestNamesFromCSV(
143 test_group_file_location) 143 test_group_file_location)
144 parent_location_list = ( 144 parent_location_list = (
145 layouttests.LayoutTests.GetParentDirectoryList(filter_names)) 145 layouttests.LayoutTests.GetParentDirectoryList(filter_names))
146 recursion = False 146 recursion = True
147 else: 147 else:
148 # When test group CSV file is not specified, test group name 148 # When test group CSV file is not specified, test group name
149 # (e.g., 'media') is used for getting layout tests. 149 # (e.g., 'media') is used for getting layout tests.
150 # The tests are in 150 # The tests are in
151 # http://svn.webkit.org/repository/webkit/trunk/LayoutTests/media 151 # http://svn.webkit.org/repository/webkit/trunk/LayoutTests/media
152 # Filtering is not set so all HTML files are considered as valid tests. 152 # Filtering is not set so all HTML files are considered as valid tests.
153 # Also, we look for the tests recursively. 153 # Also, we look for the tests recursively.
154 if not test_group_file_location or ( 154 if not test_group_file_location or (
155 not os.path.exists(test_group_file_location)): 155 not os.path.exists(test_group_file_location)):
156 print ('Warning: CSV file (%s) does not exist. So it is ignored and ' 156 print ('Warning: CSV file (%s) does not exist. So it is ignored and '
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 # Report the result to dashboard. 497 # Report the result to dashboard.
498 if options.dashboard_file_location: 498 if options.dashboard_file_location:
499 UpdateDashboard(options.dashboard_file_location, options.test_group_name, 499 UpdateDashboard(options.dashboard_file_location, options.test_group_name,
500 data_map, layouttests.DEFAULT_LAYOUTTEST_LOCATION, rev, 500 data_map, layouttests.DEFAULT_LAYOUTTEST_LOCATION, rev,
501 rev_date, options.receiver_email_address, 501 rev_date, options.receiver_email_address,
502 email_content) 502 email_content)
503 503
504 504
505 if '__main__' == __name__: 505 if '__main__' == __name__:
506 main() 506 main()
OLDNEW
« no previous file with comments | « no previous file | media/tools/layout_tests/layouttests.py » ('j') | media/tools/layout_tests/testname/media.csv » ('J')

Powered by Google App Engine
This is Rietveld 408576698