Changeset 56366 in webkit
- Timestamp:
- Mar 22, 2010 4:04:00 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r56364 r56366 1 2010-03-22 Dirk Pranke <dpranke@chromium.org> 2 3 Reviewed by Dimitri Glazkov. 4 5 Change baseline_path() to point to the upstream locations for the 6 Chromium ports. Also change the reabselining scripts to use the 7 correct functions to get the baseline directories, and fix the 8 script's sys.path to pull in simplejson correctly. 9 10 https://bugs.webkit.org/show_bug.cgi?id=36417 11 12 * Scripts/rebaseline-chromium-webkit-tests: 13 - fix sys.path to pick up simplejson properly 14 * Scripts/webkitpy/layout_tests/port/chromium.py: 15 - change baseline_path() to use webkit_baseline_path() 16 - error out correctly if we can't find the chromium base dir 17 * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py: 18 - call baseline_path(), not chromium_baseline_path() 19 1 20 2010-03-22 Chris Jerdonek <cjerdonek@webkit.org> 2 21 -
trunk/WebKitTools/Scripts/rebaseline-chromium-webkit-tests
r54760 r56366 32 32 import sys 33 33 34 sys.path.append(os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), 35 "webkitpy", "layout_tests")) 36 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))) 34 scripts_directory = os.path.dirname(os.path.abspath(sys.argv[0])) 35 webkitpy_directory = os.path.join(scripts_directory, "webkitpy") 36 sys.path.append(os.path.join(webkitpy_directory, "layout_tests")) 37 38 # For simplejson 39 sys.path.append(os.path.join(webkitpy_directory, "thirdparty")) 37 40 38 41 import rebaseline_chromium_webkit_tests -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium.py
r56307 r56366 70 70 71 71 def baseline_path(self): 72 return self._ chromium_baseline_path(self._name)72 return self._webkit_baseline_path(self._name) 73 73 74 74 def check_build(self, needs_http): … … 111 111 if not self._chromium_base_dir: 112 112 abspath = os.path.abspath(__file__) 113 self._chromium_base_dir = abspath[0:abspath.find('third_party')] 113 offset = abspath.find('third_party') 114 if offset == -1: 115 raise AssertionError('could not find Chromium base dir from ' + 116 abspath) 117 self._chromium_base_dir = abspath[0:offset] 114 118 return os.path.join(self._chromium_base_dir, *comps) 115 119 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py
r55938 r56366 205 205 206 206 def __init__(self, running_port, platform, options): 207 self._file_dir = running_port.path_from_chromium_base(208 'webkit', 'tools', 'layout_tests')209 207 self._platform = platform 210 208 self._options = options … … 442 440 expected_filename = '%s-expected%s' % (test_basename, suffix) 443 441 expected_fullpath = os.path.join( 444 self._port._chromium_baseline_path(platform), 445 expected_filename) 442 self._port.baseline_path(platform), expected_filename) 446 443 expected_fullpath = os.path.normpath(expected_fullpath) 447 444 _log.debug(' Expected file full path: "%s"',
Note: See TracChangeset
for help on using the changeset viewer.