Changeset 144253 in webkit


Ignore:
Timestamp:
Feb 27, 2013 5:33:44 PM (11 years ago)
Author:
eric@webkit.org
Message:

Add --additional-drt-flag option to run-perf-tests to make it easy to test runtime options
https://bugs.webkit.org/show_bug.cgi?id=111021

Reviewed by Dirk Pranke.

The underlying code (which is shared with run-webkit-tests)
already knew how to support this option, it just wasn't exposed
via the run-perf-tests front-end. This patch fixes that.

  • Scripts/webkitpy/performance_tests/perftestsrunner.py:

(PerfTestsRunner._parse_args):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r144252 r144253  
     12013-02-27  Eric Seidel  <eric@webkit.org>
     2
     3        Add --additional-drt-flag option to run-perf-tests to make it easy to test runtime options
     4        https://bugs.webkit.org/show_bug.cgi?id=111021
     5
     6        Reviewed by Dirk Pranke.
     7
     8        The underlying code (which is shared with run-webkit-tests)
     9        already knew how to support this option, it just wasn't exposed
     10        via the run-perf-tests front-end.  This patch fixes that.
     11
     12        * Scripts/webkitpy/performance_tests/perftestsrunner.py:
     13        (PerfTestsRunner._parse_args):
     14
    1152013-02-27  Ryosuke Niwa  <rniwa@webkit.org>
    216
  • trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner.py

    r144162 r144253  
    125125            optparse.make_option("--profiler", action="store",
    126126                help="Output per-test profile information, using the specified profiler."),
     127            optparse.make_option("--additional-drt-flag", action="append",
     128                default=[], help="Additional command line flag to pass to DumpRenderTree "
     129                     "Specify multiple times to add multiple flags."),
    127130            ]
    128131        return optparse.OptionParser(option_list=(perf_option_list)).parse_args(args)
  • trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py

    r143833 r144253  
    136136                '--slave-config-json-path=a/source.json',
    137137                '--test-results-server=somehost',
     138                '--additional-drt-flag=--enable-threaded-parser',
     139                '--additional-drt-flag=--awesomesauce',
    138140                '--debug'])
    139141        self.assertTrue(options.build)
     
    149151        self.assertEqual(options.slave_config_json_path, 'a/source.json')
    150152        self.assertEqual(options.test_results_server, 'somehost')
     153        self.assertEqual(options.additional_drt_flag, ['--enable-threaded-parser', '--awesomesauce'])
    151154
    152155    def test_upload_json(self):
Note: See TracChangeset for help on using the changeset viewer.