Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: webkit/tools/layout_tests/webkitpy/layout_package/http_server_base.py

Issue 545145: Move the layout test scripts into a 'webkitpy' subdirectory in preparation... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: try to de-confuse svn and the try bots Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Base class with common routines between the Apache and Lighttpd servers.""" 5 """Base class with common routines between the Apache and Lighttpd servers."""
6 6
7 import logging 7 import logging
8 import time 8 import time
9 import urllib 9 import urllib
10 10
(...skipping 22 matching lines...) Expand all
33 url = 'http%s://127.0.0.1:%d/' % (http_suffix, mapping['port']) 33 url = 'http%s://127.0.0.1:%d/' % (http_suffix, mapping['port'])
34 34
35 try: 35 try:
36 response = urllib.urlopen(url) 36 response = urllib.urlopen(url)
37 logging.debug("Server running at %s" % url) 37 logging.debug("Server running at %s" % url)
38 except IOError: 38 except IOError:
39 logging.debug("Server NOT running at %s" % url) 39 logging.debug("Server NOT running at %s" % url)
40 return False 40 return False
41 41
42 return True 42 return True
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698