Changeset 148126 in webkit
- Timestamp:
- Apr 10, 2013 12:24:46 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r148123 r148126 1 2013-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 1 14 2013-04-10 Anders Carlsson <andersca@apple.com> 2 15 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/factory.py
r148075 r148126 90 90 platform = self._host.platform 91 91 if platform.is_linux() or platform.is_freebsd(): 92 return ' chromium-linux'92 return 'qt-linux' 93 93 elif platform.is_mac(): 94 94 return 'mac' … … 102 102 appropriate port on this platform.""" 103 103 port_name = port_name or self._default_port(options) 104 105 # FIXME(dpranke): We special-case '--platform chromium' so that it can co-exist106 # with '--platform chromium-mac' and '--platform chromium-linux' properly (we107 # can't look at the port_name prefix in this case).108 if port_name == 'chromium':109 port_name = 'chromium-' + self._host.platform.os_name110 104 111 105 for port_class in self.PORT_CLASSES: -
trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py
r145948 r148126 125 125 # Make sure we have enough ram to support that many instances: 126 126 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 132 136 return min(supportable_instances, default_count) 133 137
Note: See TracChangeset
for help on using the changeset viewer.