Changeset 120454 in webkit
- Timestamp:
- Jun 15, 2012, 7:22:13 AM (14 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/tool/commands/rebaseline.py (modified) (3 diffs)
-
Scripts/webkitpy/tool/commands/rebaseline_unittest.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r120452 r120454 1 2012-06-15 Dirk Pranke <dpranke@chromium.org> 2 3 webkit-patch rebaseline-expectations should only rebaseline the appropriate suffixes for the failure in question 4 https://bugs.webkit.org/show_bug.cgi?id=88581 5 6 Reviewed by Adam Barth. 7 8 Make sure we only optimize the suffixes we rebaselined during 9 rebaseline-expectations, and not all suffixes for a test. 10 While optimizing is somewhere between harmless and good, it's also confusing :) 11 12 * Scripts/webkitpy/tool/commands/rebaseline.py: 13 (RebaselineExpectations._rebaseline_port): 14 (RebaselineExpectations.execute): 15 * Scripts/webkitpy/tool/commands/rebaseline_unittest.py: 16 1 17 2012-06-15 Csaba Osztrogonác <ossy@webkit.org> 2 18 -
trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline.py
r119766 r120454 285 285 _log.info("Retrieving results for %s from %s." % (port_name, builder_name)) 286 286 for test_name, suffixes in self._tests_to_rebaseline(self._tool.port_factory.get(port_name)).iteritems(): 287 self._touched_test _names.add(test_name)287 self._touched_tests.setdefault(test_name, set()).update(set(suffixes)) 288 288 _log.info(" %s (%s)" % (test_name, ','.join(suffixes))) 289 289 # FIXME: we should use executive.run_in_parallel() to speed this up. … … 291 291 292 292 def execute(self, options, args, tool): 293 self._touched_test _names = set([])293 self._touched_tests = {} 294 294 for port_name in tool.port_factory.all_port_names(): 295 295 self._rebaseline_port(port_name) … … 298 298 if not options.optimize: 299 299 return 300 for test_name in self._touched_test_names:301 _log.info("Optimizing baselines for %s ." % test_name)302 self._run_webkit_patch(['optimize-baselines', test_name])300 for test_name, suffixes in self._touched_tests.iteritems(): 301 _log.info("Optimizing baselines for %s (%s)." % (test_name, ','.join(suffixes))) 302 self._run_webkit_patch(['optimize-baselines', '--suffixes', ','.join(suffixes), test_name]) 303 303 304 304 -
trunk/Tools/Scripts/webkitpy/tool/commands/rebaseline_unittest.py
r120240 r120454 238 238 239 239 expected_logs_with_optimize = expected_logs + ( 240 "Optimizing baselines for userscripts/another-test.html .\n"241 "Optimizing baselines for userscripts/images.svg .\n")240 "Optimizing baselines for userscripts/another-test.html (txt).\n" 241 "Optimizing baselines for userscripts/images.svg (png).\n") 242 242 expected_stderr_with_optimize = expected_stderr + ( 243 "MOCK run_command: ['echo', 'optimize-baselines', ' userscripts/another-test.html'], cwd=/mock-checkout\n"244 "MOCK run_command: ['echo', 'optimize-baselines', ' userscripts/images.svg'], cwd=/mock-checkout\n")243 "MOCK run_command: ['echo', 'optimize-baselines', '--suffixes', 'txt', 'userscripts/another-test.html'], cwd=/mock-checkout\n" 244 "MOCK run_command: ['echo', 'optimize-baselines', '--suffixes', 'png', 'userscripts/images.svg'], cwd=/mock-checkout\n") 245 245 246 246 command._tests_to_rebaseline = lambda port: {'userscripts/another-test.html': set(['txt']), 'userscripts/images.svg': set(['png'])}
Note:
See TracChangeset
for help on using the changeset viewer.