Changeset 90285 in webkit
- Timestamp:
- Jul 1, 2011 3:11:46 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r90279 r90285 1 2011-07-01 Eric Seidel <eric@webkit.org> 2 3 new-run-webkit-tests results does not understand that mac uses test_expectations files 4 https://bugs.webkit.org/show_bug.cgi?id=63838 5 6 Reviewed by Adam Barth. 7 8 We've decided to "enable" test_expectations for the Mac port for now. 9 It makes the results.html results much more confusing to read, but at least they're 10 no longer lying to us. 11 12 * Scripts/webkitpy/layout_tests/layout_package/manager.py: 13 * Scripts/webkitpy/layout_tests/port/base.py: 14 * Scripts/webkitpy/layout_tests/port/base_unittest.py: 15 1 16 2011-07-01 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Tools/Scripts/webkitpy/layout_tests/layout_package/manager.py
r90279 r90285 207 207 results['num_flaky'] = num_flaky 208 208 results['num_regressions'] = num_regressions 209 # FIXME: If non-chromium ports start using an expectations file, 210 # we should make this check more robust. 211 results['uses_expectations_file'] = port_obj.name().find('chromium') != -1 209 results['uses_expectations_file'] = port_obj.uses_test_expectations_file() 212 210 results['layout_tests_dir'] = port_obj.layout_tests_dir() 213 211 results['has_wdiff'] = port_obj.wdiff_available() -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py
r90246 r90285 712 712 raise NotImplementedError 713 713 714 def uses_test_expectations_file(self): 715 # This is different from checking test_expectations() is None, because 716 # some ports have Skipped files which are returned as part of test_expectations(). 717 return self._filesystem.exists(self.path_to_test_expectations_file()) 718 714 719 def test_expectations(self): 715 720 """Returns the test expectations for this port. -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
r89512 r90285 208 208 path = test_file 209 209 210 self.assertEqual(port.filename_to_uri(test_file), 211 abspath_to_uri(test_file)) 210 self.assertEqual(port.filename_to_uri(test_file), abspath_to_uri(test_file)) 212 211 213 212 def test_get_option__set(self): … … 235 234 def test_additional_platform_directory(self): 236 235 filesystem = MockFileSystem() 237 options, args = optparse.OptionParser().parse_args([]) 238 port = base.Port(port_name='foo', filesystem=filesystem, options=options) 236 port = base.Port(port_name='foo', filesystem=filesystem) 239 237 port.baseline_search_path = lambda: ['LayoutTests/platform/foo'] 240 238 layout_test_dir = port.layout_tests_dir() … … 248 246 249 247 # Simple additional platform directory 250 options.additional_platform_directory = ['/tmp/local-baselines']248 port._options.additional_platform_directory = ['/tmp/local-baselines'] 251 249 filesystem.files = { 252 250 '/tmp/local-baselines/fast/test-expected.txt': 'foo', … … 258 256 259 257 # Multiple additional platform directories 260 options.additional_platform_directory = ['/foo', '/tmp/local-baselines']258 port._options.additional_platform_directory = ['/foo', '/tmp/local-baselines'] 261 259 self.assertEqual( 262 260 port.expected_baselines(test_file, '.txt'), 263 261 [('/tmp/local-baselines', 'fast/test-expected.txt')]) 264 262 self.assertEqual(port.baseline_path(), '/foo') 263 264 def test_uses_test_expectations_file(self): 265 filesystem = MockFileSystem() 266 port = base.Port(port_name='foo', filesystem=filesystem) 267 port.path_to_test_expectations_file = lambda: '/mock/test_expectations.txt' 268 self.assertFalse(port.uses_test_expectations_file()) 269 port._filesystem = MockFileSystem({'/mock/test_expectations.txt': ''}) 270 self.assertTrue(port.uses_test_expectations_file()) 271 265 272 266 273 class VirtualTest(unittest.TestCase):
Note: See TracChangeset
for help on using the changeset viewer.