Changeset 85735 in webkit
- Timestamp:
- May 4, 2011 5:39:25 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r85727 r85735 1 2011-05-04 Mihai Parparita <mihaip@chromium.org> 2 3 Reviewed by Ojan Vafai. 4 5 [NRWT] --new-baseline should put baselines in the directory specified by --additional-platform-directory 6 https://bugs.webkit.org/show_bug.cgi?id=60088 7 8 Makes --new-baseline put new baselines into the first entry in the 9 baseline search path, including any additional directories passed in via 10 --additional-platform-directory. 11 12 Simplifies baseline_path() by making it return the first entry in the 13 baseline search path instead of requiring each port to have an 14 implementation (should not result in any behavior change). 15 16 * Scripts/webkitpy/layout_tests/port/base.py: 17 * Scripts/webkitpy/layout_tests/port/base_unittest.py: 18 * Scripts/webkitpy/layout_tests/port/chromium.py: 19 * Scripts/webkitpy/layout_tests/port/chromium_gpu.py: 20 * Scripts/webkitpy/layout_tests/port/chromium_linux.py: 21 * Scripts/webkitpy/layout_tests/port/chromium_mac.py: 22 * Scripts/webkitpy/layout_tests/port/chromium_win.py: 23 * Scripts/webkitpy/layout_tests/port/mac.py: 24 * Scripts/webkitpy/layout_tests/port/test.py: 25 * Scripts/webkitpy/layout_tests/port/webkit.py: 26 1 27 2011-05-04 Adam Barth <abarth@webkit.org> 2 28 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py
r85347 r85735 164 164 """Return the absolute path to the directory to store new baselines 165 165 in for this port.""" 166 raise NotImplementedError('Port.baseline_path') 166 baseline_search_paths = \ 167 self.get_option('additional_platform_directory', []) + self.baseline_search_path() 168 return baseline_search_paths[0] 167 169 168 170 def baseline_search_path(self): -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
r83783 r85735 237 237 options, args = optparse.OptionParser().parse_args([]) 238 238 port = base.Port(port_name='foo', filesystem=filesystem, options=options) 239 port.baseline_search_path = lambda: [ ]239 port.baseline_search_path = lambda: ['LayoutTests/platform/foo'] 240 240 layout_test_dir = port.layout_tests_dir() 241 241 test_file = filesystem.join(layout_test_dir, 'fast', 'test.html') … … 245 245 port.expected_baselines(test_file, '.txt'), 246 246 [(None, 'fast/test-expected.txt')]) 247 self.assertEqual(port.baseline_path(), 'LayoutTests/platform/foo') 247 248 248 249 # Simple additional platform directory … … 254 255 port.expected_baselines(test_file, '.txt'), 255 256 [('/tmp/local-baselines', 'fast/test-expected.txt')]) 257 self.assertEqual(port.baseline_path(), '/tmp/local-baselines') 256 258 257 259 # Multiple additional platform directories … … 260 262 port.expected_baselines(test_file, '.txt'), 261 263 [('/tmp/local-baselines', 'fast/test-expected.txt')]) 264 self.assertEqual(port.baseline_path(), '/foo') 262 265 263 266 class VirtualTest(unittest.TestCase): -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py
r84207 r85735 83 83 84 84 85 def baseline_path(self):86 return self._webkit_baseline_path(self._name)87 88 85 def check_build(self, needs_http): 89 86 result = True -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_gpu.py
r85628 r85735 91 91 _set_gpu_options(self) 92 92 93 def baseline_path(self):94 # GPU baselines aren't yet versioned.95 return self._webkit_baseline_path('chromium-gpu-linux')96 97 93 def baseline_search_path(self): 98 94 # Mimic the Linux -> Win expectations fallback in the ordinary Chromium port. … … 112 108 _set_gpu_options(self) 113 109 114 def baseline_path(self):115 # GPU baselines aren't yet versioned.116 return self._webkit_baseline_path('chromium-gpu-mac')117 118 110 def baseline_search_path(self): 119 111 return (map(self._webkit_baseline_path, ['chromium-gpu-mac', 'chromium-gpu']) + … … 132 124 _set_gpu_options(self) 133 125 134 def baseline_path(self):135 # GPU baselines aren't yet versioned.136 return self._webkit_baseline_path('chromium-gpu-win')137 138 126 def baseline_search_path(self): 139 127 return (map(self._webkit_baseline_path, ['chromium-gpu-win', 'chromium-gpu']) + -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_linux.py
r85347 r85735 92 92 return 'x86' 93 93 94 def baseline_path(self):95 if self._architecture == 'x86_64':96 return self._webkit_baseline_path(self._name)97 return self._webkit_baseline_path('chromium-linux')98 99 94 def baseline_search_path(self): 100 95 port_names = self.FALLBACK_PATHS[self._architecture] -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_mac.py
r85347 r85735 80 80 assert self._version in self.SUPPORTED_OS_VERSIONS 81 81 self._operating_system = 'mac' 82 83 def baseline_path(self):84 if self.version() in ('snowleopard', 'future'):85 # We treat Snow Leopard as the newest version of mac,86 # so it gets the base dir.87 return self._webkit_baseline_path('chromium-mac')88 return self._webkit_baseline_path(self.name())89 82 90 83 def baseline_search_path(self): -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_win.py
r83880 r85735 97 97 return env 98 98 99 def baseline_path(self):100 if self.version() == 'win7':101 # Win 7 is the newest version of windows, so it gets the base dir.102 return self._webkit_baseline_path('chromium-win')103 return self._webkit_baseline_path(self.name())104 105 99 def baseline_search_path(self): 106 100 port_names = self.FALLBACK_PATHS[self.version()] -
trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py
r83880 r85735 95 95 return child_processes 96 96 97 def baseline_path(self):98 if self.version() != 'future':99 return WebKitPort.baseline_path(self)100 101 assert(self._name[-7:] == '-future')102 return self._webkit_baseline_path(self._name[:-7])103 104 97 def baseline_search_path(self): 105 98 return map(self._webkit_baseline_path, self.FALLBACK_PATHS[self._version]) -
trunk/Tools/Scripts/webkitpy/layout_tests/port/test.py
r85609 r85735 284 284 return 'junk' 285 285 286 def baseline_path(self):287 # We don't bother with a fallback path.288 return self._filesystem.join(self.layout_tests_dir(), 'platform', self.name())289 290 286 def baseline_search_path(self): 291 287 search_paths = { -
trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py
r85256 r85735 61 61 self._options.pixel_tests = False 62 62 63 def baseline_path(self):64 return self._webkit_baseline_path(self._name)65 66 63 def baseline_search_path(self): 67 64 return [self._webkit_baseline_path(self._name)]
Note: See TracChangeset
for help on using the changeset viewer.