Changeset 56366 in webkit


Ignore:
Timestamp:
Mar 22, 2010 4:04:00 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-03-22 Dirk Pranke <dpranke@chromium.org>

Reviewed by Dimitri Glazkov.

Change baseline_path() to point to the upstream locations for the
Chromium ports. Also change the reabselining scripts to use the
correct functions to get the baseline directories, and fix the
script's sys.path to pull in simplejson correctly.

https://bugs.webkit.org/show_bug.cgi?id=36417

  • Scripts/rebaseline-chromium-webkit-tests:
    • fix sys.path to pick up simplejson properly
  • Scripts/webkitpy/layout_tests/port/chromium.py:
    • change baseline_path() to use webkit_baseline_path()
    • error out correctly if we can't find the chromium base dir
  • Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py:
    • call baseline_path(), not chromium_baseline_path()
Location:
trunk/WebKitTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r56364 r56366  
     12010-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
    1202010-03-22  Chris Jerdonek  <cjerdonek@webkit.org>
    221
  • trunk/WebKitTools/Scripts/rebaseline-chromium-webkit-tests

    r54760 r56366  
    3232import sys
    3333
    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]))))
     34scripts_directory = os.path.dirname(os.path.abspath(sys.argv[0]))
     35webkitpy_directory = os.path.join(scripts_directory, "webkitpy")
     36sys.path.append(os.path.join(webkitpy_directory, "layout_tests"))
     37
     38# For simplejson
     39sys.path.append(os.path.join(webkitpy_directory, "thirdparty"))
    3740
    3841import rebaseline_chromium_webkit_tests
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium.py

    r56307 r56366  
    7070
    7171    def baseline_path(self):
    72         return self._chromium_baseline_path(self._name)
     72        return self._webkit_baseline_path(self._name)
    7373
    7474    def check_build(self, needs_http):
     
    111111        if not self._chromium_base_dir:
    112112            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]
    114118        return os.path.join(self._chromium_base_dir, *comps)
    115119
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py

    r55938 r56366  
    205205
    206206    def __init__(self, running_port, platform, options):
    207         self._file_dir = running_port.path_from_chromium_base(
    208             'webkit', 'tools', 'layout_tests')
    209207        self._platform = platform
    210208        self._options = options
     
    442440                expected_filename = '%s-expected%s' % (test_basename, suffix)
    443441                expected_fullpath = os.path.join(
    444                     self._port._chromium_baseline_path(platform),
    445                     expected_filename)
     442                    self._port.baseline_path(platform), expected_filename)
    446443                expected_fullpath = os.path.normpath(expected_fullpath)
    447444                _log.debug('  Expected file full path: "%s"',
Note: See TracChangeset for help on using the changeset viewer.