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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 |
scherkus (not reviewing)
2012/05/02 00:50:55
didn't you mention there were performance issues?
imasaki1
2012/05/03 23:31:14
There is performance issue (the execution becomes
| |
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 Loading... | |
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() |
OLD | NEW |