⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 263261 in webkit


Ignore:
Timestamp:
Jun 19, 2020, 6:18:21 AM (6 years ago)
Author:
Lauro Moura
Message:

[webkitpy][WPE] Default to headless if _display_server is xfvb
https://bugs.webkit.org/show_bug.cgi?id=213327

Reviewed by Philippe Normand.

Xvfb is used as the default display server for some scripts, and the
equivalent for WPE is the headless one.

WTR and the API tests already create only HeadlessViewBackends, but the
WebDriver tests create them through MiniBrowser, which requires the
'--headless' parameter.

  • Scripts/run-webdriver-tests: Do not override _display_server
  • Scripts/webkitpy/port/base.py:

(Port.init): Define _display_server for all ports to avoid
eventually needing to override it.

  • Scripts/webkitpy/port/wpe.py:

(WPEPort.init): Default to 'headless' if _display_server is 'xvfb'

  • Scripts/webkitpy/w3c/wpt_runner.py:

(main): Dot not override _display_server

Location:
trunk/Tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r263258 r263261  
     12020-06-19  Lauro Moura  <lmoura@igalia.com>
     2
     3        [webkitpy][WPE] Default to headless if _display_server is xfvb
     4        https://bugs.webkit.org/show_bug.cgi?id=213327
     5
     6        Reviewed by Philippe Normand.
     7
     8        Xvfb is used as the default display server for some scripts, and the
     9        equivalent for WPE is the headless one.
     10
     11        WTR and the API tests already create only HeadlessViewBackends, but the
     12        WebDriver tests create them through MiniBrowser, which requires the
     13        '--headless' parameter.
     14
     15        * Scripts/run-webdriver-tests: Do not override _display_server
     16        * Scripts/webkitpy/port/base.py:
     17        (Port.__init__): Define _display_server for all ports to avoid
     18        eventually needing to override it.
     19        * Scripts/webkitpy/port/wpe.py:
     20        (WPEPort.__init__): Default to 'headless' if _display_server is 'xvfb'
     21        * Scripts/webkitpy/w3c/wpt_runner.py:
     22        (main): Dot not override _display_server
     23
    1242020-06-19  Carlos Garcia Campos  <cgarcia@igalia.com>
    225
  • trunk/Tools/Scripts/run-webdriver-tests

    r258626 r263261  
    8282            print '***'
    8383
    84 port._display_server = options.display_server
    8584runner = WebDriverTestRunner(port)
    8685runner.run(args)
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r260130 r263261  
    144144        self._layout_tests_dir = hasattr(options, 'layout_tests_dir') and options.layout_tests_dir and self._filesystem.abspath(options.layout_tests_dir)
    145145        self._w3c_resource_files = None
     146        self._display_server = None
    146147
    147148    def target_host(self, worker_number=None):
  • trunk/Tools/Scripts/webkitpy/port/wpe.py

    r261383 r263261  
    4343
    4444        self._display_server = self.get_option("display_server")
     45        if self._display_server == 'xvfb':
     46            # While not supported by WPE, xvfb is used as the default value in the main scripts
     47            self._display_server = 'headless'
    4548        if self._should_use_jhbuild():
    4649            self._jhbuild_wrapper = [self.path_from_webkit_base('Tools', 'jhbuild', 'jhbuild-wrapper'), '--wpe', 'run']
  • trunk/Tools/Scripts/webkitpy/w3c/wpt_runner.py

    r253219 r263261  
    7979
    8080    # Create the Port-specific driver.
    81     port._display_server = options.display_server
    8281    display_driver = port.create_driver(worker_number=0, no_timeout=True)._make_driver(pixel_tests=False)
    8382    if not display_driver.check_driver(port):
Note: See TracChangeset for help on using the changeset viewer.