Changeset 83783 in webkit


Ignore:
Timestamp:
Apr 13, 2011 4:04:01 PM (13 years ago)
Author:
mihaip@chromium.org
Message:

2011-04-13 Mihai Parparita <mihaip@chromium.org>

Reviewed by Eric Seidel.

[NRWT] Rename --baseline-search-patch to --additional-platform-directory to match ORWT
https://bugs.webkit.org/show_bug.cgi?id=58489

r83743 added --additional-platform-directory to old-run-webkit-tests,
rename the equivalent flag in new-run-webkit-tests to be consistent.

  • Scripts/webkitpy/layout_tests/port/base.py:
  • Scripts/webkitpy/layout_tests/port/base_unittest.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests.py:
  • Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r83781 r83783  
     12011-04-13  Mihai Parparita  <mihaip@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [NRWT] Rename --baseline-search-patch to --additional-platform-directory to match ORWT
     6        https://bugs.webkit.org/show_bug.cgi?id=58489
     7       
     8        r83743 added --additional-platform-directory to old-run-webkit-tests,
     9        rename the equivalent flag in new-run-webkit-tests to be consistent.
     10
     11        * Scripts/webkitpy/layout_tests/port/base.py:
     12        * Scripts/webkitpy/layout_tests/port/base_unittest.py:
     13        * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
     14        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
     15
    1162011-04-13  Mihai Parparita  <mihaip@chromium.org>
    217
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py

    r83759 r83783  
    286286        baseline_filename = testname + '-expected' + suffix
    287287
    288         baseline_search_path = self.get_option('baseline_search_path', []) + self.baseline_search_path()
     288        baseline_search_path = self.get_option('additional_platform_directory', []) + self.baseline_search_path()
    289289
    290290        baselines = []
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py

    r83759 r83783  
    233233        self.assertEqual(port.name(), 'foo')
    234234
    235     def test_baseline_search_path(self):
     235    def test_additional_platform_directory(self):
    236236        filesystem = MockFileSystem()
    237237        options, args = optparse.OptionParser().parse_args([])
     
    241241        test_file = filesystem.join(layout_test_dir, 'fast', 'test.html')
    242242
    243         # No baseline search path
     243        # No additional platform directory
    244244        self.assertEqual(
    245245            port.expected_baselines(test_file, '.txt'),
    246246            [(None, 'fast/test-expected.txt')])
    247247
    248         # Simple search path
    249         options.baseline_search_path = ['/tmp/local-baselines']
     248        # Simple additional platform directory
     249        options.additional_platform_directory = ['/tmp/local-baselines']
    250250        filesystem.files = {
    251251            '/tmp/local-baselines/fast/test-expected.txt': 'foo',
     
    255255            [('/tmp/local-baselines', 'fast/test-expected.txt')])
    256256
    257         # Multiple entries in search path
    258         options.baseline_search_path = ['/foo', '/tmp/local-baselines']
     257        # Multiple additional platform directories
     258        options.additional_platform_directory = ['/foo', '/tmp/local-baselines']
    259259        self.assertEqual(
    260260            port.expected_baselines(test_file, '.txt'),
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py

    r83646 r83783  
    161161    options.slow_time_out_ms = str(5 * int(options.time_out_ms))
    162162
    163     if options.baseline_search_path:
    164         normalized_search_paths = []
    165         for path in options.baseline_search_path:
     163    if options.additional_platform_directory:
     164        normalized_platform_directories = []
     165        for path in options.additional_platform_directory:
    166166            if not port_obj._filesystem.isabs(path):
    167                 warnings.append("--baseline-search-path=%s is ignored since it is not absolute" % path)
     167                warnings.append("--additional-platform-directory=%s is ignored since it is not absolute" % path)
    168168                continue
    169             normalized_search_paths.append(port_obj._filesystem.normpath(path))
    170         options.baseline_search_path = normalized_search_paths
     169            normalized_platform_directories.append(port_obj._filesystem.normpath(path))
     170        options.additional_platform_directory = normalized_platform_directories
    171171
    172172    return warnings
     
    293293            default=False, help="Reset any existing baselines to the "
    294294                 "generated results"),
    295         optparse.make_option("--baseline-search-path", action="append",
     295        optparse.make_option("--additional-platform-directory", action="append",
    296296            default=[], help="Additional directory where to look for test "
    297297                 "baselines (will take precendence over platform baselines). "
  • trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py

    r83646 r83783  
    576576        self.assertEquals(['passes/mismatch.html', 'passes/mismatch-expected-mismatch.html'], tests_run)
    577577
    578     def test_baseline_search_path(self):
    579         self.assertTrue(passing_run(['--baseline-search-path', '/tmp/foo']))
    580         self.assertTrue(passing_run(['--baseline-search-path', '/tmp/../foo']))
    581         self.assertTrue(passing_run(['--baseline-search-path', '/tmp/foo',
    582             '--baseline-search-path', '/tmp/bar']))
     578    def test_additional_platform_directory(self):
     579        self.assertTrue(passing_run(['--additional-platform-directory', '/tmp/foo']))
     580        self.assertTrue(passing_run(['--additional-platform-directory', '/tmp/../foo']))
     581        self.assertTrue(passing_run(['--additional-platform-directory', '/tmp/foo',
     582            '--additional-platform-directory', '/tmp/bar']))
    583583
    584584        res, buildbot_output, regular_output, user = logging_run(
    585              ['--baseline-search-path', 'foo'])
    586         self.assertTrue('--baseline-search-path=foo is ignored since it is not absolute\n'
     585             ['--additional-platform-directory', 'foo'])
     586        self.assertTrue('--additional-platform-directory=foo is ignored since it is not absolute\n'
    587587                        in regular_output.get())
    588588
Note: See TracChangeset for help on using the changeset viewer.