Changeset 116662 in webkit


Ignore:
Timestamp:
May 10, 2012 11:15:04 AM (12 years ago)
Author:
rakuco@webkit.org
Message:

[EFL][webkitpy] Define the 'wrapper' option in EflPort instead of creating a EflDriver.
https://bugs.webkit.org/show_bug.cgi?id=86117

Reviewed by Adam Barth.

Simplify the code used to wrap driver calls with jhbuild: we can
just define the 'wrapper' option instead of having to create a
Driver class just for that.

  • Scripts/webkitpy/layout_tests/port/efl.py:

(EflPort.init):
(EflPort._port_flag_for_scripts):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r116639 r116662  
     12012-05-10  Raphael Kubo da Costa  <rakuco@webkit.org>
     2
     3        [EFL][webkitpy] Define the 'wrapper' option in EflPort instead of creating a EflDriver.
     4        https://bugs.webkit.org/show_bug.cgi?id=86117
     5
     6        Reviewed by Adam Barth.
     7
     8        Simplify the code used to wrap driver calls with jhbuild: we can
     9        just define the 'wrapper' option instead of having to create a
     10        Driver class just for that.
     11
     12        * Scripts/webkitpy/layout_tests/port/efl.py:
     13        (EflPort.__init__):
     14        (EflPort._port_flag_for_scripts):
     15
    1162012-05-10  Sheriff Bot  <webkit.review.bot@gmail.com>
    217
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/efl.py

    r115478 r116662  
    3333
    3434from webkitpy.layout_tests.models.test_configuration import TestConfiguration
    35 from webkitpy.layout_tests.port.webkit import WebKitDriver, WebKitPort
     35from webkitpy.layout_tests.port.webkit import WebKitPort
    3636from webkitpy.layout_tests.port.pulseaudio_sanitizer import PulseAudioSanitizer
    37 
    38 
    39 class EflDriver(WebKitDriver):
    40     def cmd_line(self, pixel_tests, per_test_args):
    41         wrapper_path = self._port.path_from_webkit_base("Tools", "efl", "run-with-jhbuild")
    42         return [wrapper_path] + WebKitDriver.cmd_line(self, pixel_tests, per_test_args)
    4337
    4438
     
    4640    port_name = 'efl'
    4741
     42    def __init__(self, *args, **kwargs):
     43        WebKitPort.__init__(self, *args, **kwargs)
     44
     45        self.set_option_default('wrapper', self.path_from_webkit_base('Tools', 'efl', 'run-with-jhbuild'))
     46
    4847    def _port_flag_for_scripts(self):
    4948        return "--efl"
    50 
    51     def _driver_class(self):
    52         return EflDriver
    5349
    5450    def setup_test_run(self):
Note: See TracChangeset for help on using the changeset viewer.