Changeset 148126 in webkit


Ignore:
Timestamp:
Apr 10, 2013 12:24:46 PM (11 years ago)
Author:
glenn@skynav.com
Message:

[Qt] Fix regression to test-webkitpy.
https://bugs.webkit.org/show_bug.cgi?id=114368

Reviewed by Ryosuke Niwa.

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

(PortFactory._default_port): Return qt-linux instead of chromium-linux as default port for linux/freebsd.
(PortFactory.get): Remove obsolete chromium port related code.

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

(MacPort.default_child_processes): Prevent type error if can't determine total memory.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r148123 r148126  
     12013-04-10  Glenn Adams  <glenn@skynav.com>
     2
     3        [Qt] Fix regression to test-webkitpy.
     4        https://bugs.webkit.org/show_bug.cgi?id=114368
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * Scripts/webkitpy/layout_tests/port/factory.py:
     9        (PortFactory._default_port): Return qt-linux instead of chromium-linux as default port for linux/freebsd.
     10        (PortFactory.get): Remove obsolete chromium port related code.
     11        * Scripts/webkitpy/layout_tests/port/mac.py:
     12        (MacPort.default_child_processes): Prevent type error if can't determine total memory.
     13
    1142013-04-10  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/factory.py

    r148075 r148126  
    9090        platform = self._host.platform
    9191        if platform.is_linux() or platform.is_freebsd():
    92             return 'chromium-linux'
     92            return 'qt-linux'
    9393        elif platform.is_mac():
    9494            return 'mac'
     
    102102        appropriate port on this platform."""
    103103        port_name = port_name or self._default_port(options)
    104 
    105         # FIXME(dpranke): We special-case '--platform chromium' so that it can co-exist
    106         # with '--platform chromium-mac' and '--platform chromium-linux' properly (we
    107         # can't look at the port_name prefix in this case).
    108         if port_name == 'chromium':
    109             port_name = 'chromium-' + self._host.platform.os_name
    110104
    111105        for port_class in self.PORT_CLASSES:
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py

    r145948 r148126  
    125125        # Make sure we have enough ram to support that many instances:
    126126        total_memory = self.host.platform.total_bytes_memory()
    127         bytes_per_drt = 256 * 1024 * 1024  # Assume each DRT needs 256MB to run.
    128         overhead = 2048 * 1024 * 1024  # Assume we need 2GB free for the O/S
    129         supportable_instances = max((total_memory - overhead) / bytes_per_drt, 1)  # Always use one process, even if we don't have space for it.
    130         if supportable_instances < default_count:
    131             _log.warning("This machine could support %s child processes, but only has enough memory for %s." % (default_count, supportable_instances))
     127        if total_memory:
     128            bytes_per_drt = 256 * 1024 * 1024  # Assume each DRT needs 256MB to run.
     129            overhead = 2048 * 1024 * 1024  # Assume we need 2GB free for the O/S
     130            supportable_instances = max((total_memory - overhead) / bytes_per_drt, 1)  # Always use one process, even if we don't have space for it.
     131            if supportable_instances < default_count:
     132                _log.warning("This machine could support %s child processes, but only has enough memory for %s." % (default_count, supportable_instances))
     133        else:
     134            _log.warning("Cannot determine available memory for child processes, using default child process count of %s." % default_count)
     135            supportable_instances = default_count
    132136        return min(supportable_instances, default_count)
    133137
Note: See TracChangeset for help on using the changeset viewer.