Changeset 89512 in webkit
- Timestamp:
- Jun 22, 2011 6:17:31 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r89510 r89512 1 2011-06-22 Dirk Pranke <dpranke@chromium.org> 2 3 Reviewed by Ojan Vafai. 4 5 new-run-webkit-tests: remove obsolete port.shut_down_http_server method 6 https://bugs.webkit.org/show_bug.cgi?id=59993 7 8 * Scripts/webkitpy/layout_tests/port/base.py: 9 * Scripts/webkitpy/layout_tests/port/base_unittest.py: 10 * Scripts/webkitpy/layout_tests/port/chromium_linux.py: 11 * Scripts/webkitpy/layout_tests/port/chromium_mac.py: 12 * Scripts/webkitpy/layout_tests/port/chromium_win.py: 13 * Scripts/webkitpy/layout_tests/port/gtk.py: 14 * Scripts/webkitpy/layout_tests/port/mac.py: 15 * Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py: 16 * Scripts/webkitpy/layout_tests/port/qt.py: 17 * Scripts/webkitpy/layout_tests/port/win.py: 18 1 19 2011-06-22 Luke Macpherson <macpherson@chromium.org> 2 20 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py
r89502 r89512 913 913 raise NotImplementedError('Port._path_to_wdiff') 914 914 915 def _shut_down_http_server(self, pid):916 """Forcefully and synchronously kills the web server.917 918 This routine should only be called from http_server.py or its919 subclasses."""920 raise NotImplementedError('Port._shut_down_http_server')921 922 915 def _webkit_baseline_path(self, platform): 923 916 """Return the full path to the top of the baseline tree for a -
trunk/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py
r85735 r89512 289 289 self.assertVirtual(port._path_to_lighttpd_php) 290 290 self.assertVirtual(port._path_to_wdiff) 291 self.assertVirtual(port._shut_down_http_server, None)292 291 293 292 def test_virtual_driver_method(self): -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_linux.py
r86696 r89512 31 31 32 32 import logging 33 import os34 import signal35 33 36 34 import chromium … … 205 203 def _is_redhat_based(self): 206 204 return self._filesystem.exists(self._filesystem.join('/etc', 'redhat-release')) 207 208 def _shut_down_http_server(self, server_pid):209 """Shut down the lighttpd web server. Blocks until it's fully210 shut down.211 212 Args:213 server_pid: The process ID of the running server.214 """215 # server_pid is not set when "http_server.py stop" is run manually.216 if server_pid is None:217 # TODO(mmoss) This isn't ideal, since it could conflict with218 # lighttpd processes not started by http_server.py,219 # but good enough for now.220 self._executive.kill_all("lighttpd")221 self._executive.kill_all("apache2")222 else:223 try:224 os.kill(server_pid, signal.SIGTERM)225 # TODO(mmoss) Maybe throw in a SIGKILL just to be sure?226 except OSError:227 # Sometimes we get a bad PID (e.g. from a stale httpd.pid228 # file), so if kill fails on the given PID, just try to229 # 'killall' web servers.230 self._shut_down_http_server(None) -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_mac.py
r85735 r89512 164 164 def _path_to_wdiff(self): 165 165 return 'wdiff' 166 167 def _shut_down_http_server(self, server_pid):168 """Shut down the lighttpd web server. Blocks until it's fully169 shut down.170 171 Args:172 server_pid: The process ID of the running server.173 """174 # server_pid is not set when "http_server.py stop" is run manually.175 if server_pid is None:176 # TODO(mmoss) This isn't ideal, since it could conflict with177 # lighttpd processes not started by http_server.py,178 # but good enough for now.179 self._executive.kill_all('lighttpd')180 self._executive.kill_all('httpd')181 else:182 try:183 os.kill(server_pid, signal.SIGTERM)184 # TODO(mmoss) Maybe throw in a SIGKILL just to be sure?185 except OSError:186 # Sometimes we get a bad PID (e.g. from a stale httpd.pid187 # file), so if kill fails on the given PID, just try to188 # 'killall' web servers.189 self._shut_down_http_server(None) -
trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium_win.py
-
Property
svn:executable
set to
*
r85896 r89512 171 171 return self.path_from_chromium_base('third_party', 'cygwin', 'bin', 172 172 'wdiff.exe') 173 174 def _shut_down_http_server(self, server_pid):175 """Shut down the lighttpd web server. Blocks until it's fully176 shut down.177 178 Args:179 server_pid: The process ID of the running server.180 """181 # FIXME: Why are we ignoring server_pid and calling182 # _kill_all instead of Executive.kill_process(pid)?183 self._executive.kill_all("LightTPD.exe")184 self._executive.kill_all("httpd.exe") -
Property
svn:executable
set to
-
trunk/Tools/Scripts/webkitpy/layout_tests/port/gtk.py
r88177 r89512 30 30 31 31 import logging 32 import os33 import signal34 32 35 33 from webkitpy.layout_tests.port.webkit import WebKitPort … … 49 47 return self._filesystem.join(self.layout_tests_dir(), 'http', 'conf', 50 48 'apache2-debian-httpd.conf') 51 52 def _shut_down_http_server(self, server_pid):53 """Shut down the httpd web server. Blocks until it's fully54 shut down.55 56 Args:57 server_pid: The process ID of the running server.58 """59 # server_pid is not set when "http_server.py stop" is run manually.60 if server_pid is None:61 # FIXME: This isn't ideal, since it could conflict with62 # lighttpd processes not started by http_server.py,63 # but good enough for now.64 self._executive.kill_all('apache2')65 else:66 try:67 os.kill(server_pid, signal.SIGTERM)68 # TODO(mmoss) Maybe throw in a SIGKILL just to be sure?69 except OSError:70 # Sometimes we get a bad PID (e.g. from a stale httpd.pid71 # file), so if kill fails on the given PID, just try to72 # 'killall' web servers.73 self._shut_down_http_server(None)74 49 75 50 def _path_to_driver(self): -
trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py
r85735 r89512 30 30 31 31 import logging 32 import os33 32 import platform 34 import signal35 33 36 34 from webkitpy.layout_tests.port.webkit import WebKitPort … … 130 128 def _path_to_webcore_library(self): 131 129 return self._build_path('WebCore.framework/Versions/A/WebCore') 132 133 # FIXME: This doesn't have anything to do with WebKit.134 def _shut_down_http_server(self, server_pid):135 """Shut down the lighttpd web server. Blocks until it's fully136 shut down.137 138 Args:139 server_pid: The process ID of the running server.140 """141 # server_pid is not set when "http_server.py stop" is run manually.142 if server_pid is None:143 # FIXME: This isn't ideal, since it could conflict with144 # lighttpd processes not started by http_server.py,145 # but good enough for now.146 self._executive.kill_all('httpd')147 else:148 try:149 os.kill(server_pid, signal.SIGTERM)150 # FIXME: Maybe throw in a SIGKILL just to be sure?151 except OSError:152 # Sometimes we get a bad PID (e.g. from a stale httpd.pid153 # file), so if kill fails on the given PID, just try to154 # 'killall' web servers.155 self._shut_down_http_server(None) -
trunk/Tools/Scripts/webkitpy/layout_tests/port/qt.py
r89031 r89512 30 30 31 31 import logging 32 import os33 import signal34 32 import sys 35 33 … … 64 62 'apache2-debian-httpd.conf') 65 63 66 def _shut_down_http_server(self, server_pid):67 """Shut down the httpd web server. Blocks until it's fully68 shut down.69 70 Args:71 server_pid: The process ID of the running server.72 """73 # server_pid is not set when "http_server.py stop" is run manually.74 if server_pid is None:75 # FIXME: This isn't ideal, since it could conflict with76 # lighttpd processes not started by http_server.py,77 # but good enough for now.78 self._executive.kill_all('apache2')79 else:80 try:81 os.kill(server_pid, signal.SIGTERM)82 # TODO(mmoss) Maybe throw in a SIGKILL just to be sure?83 except OSError:84 # Sometimes we get a bad PID (e.g. from a stale httpd.pid85 # file), so if kill fails on the given PID, just try to86 # 'killall' web servers.87 self._shut_down_http_server(None)88 89 64 def _build_driver(self): 90 65 # The Qt port builds DRT as part of the main build step -
trunk/Tools/Scripts/webkitpy/layout_tests/port/win.py
r86429 r89512 53 53 return self._filesystem.join(self.layout_tests_dir(), 'http', 'conf', 54 54 'cygwin-httpd.conf') 55 56 def _shut_down_http_server(self, server_pid):57 """Shut down the httpd web server. Blocks until it's fully58 shut down.59 60 Args:61 server_pid: The process ID of the running server.62 """63 # Looks like we ignore server_pid.64 # Copy/pasted from chromium-win.65 self._executive.kill_all("httpd.exe")
Note: See TracChangeset
for help on using the changeset viewer.