Chromium Code Reviews| Index: webkit/tools/layout_tests/layout_package/path_utils.py |
| =================================================================== |
| --- webkit/tools/layout_tests/layout_package/path_utils.py (revision 25942) |
| +++ webkit/tools/layout_tests/layout_package/path_utils.py (working copy) |
| @@ -197,16 +197,19 @@ |
| elif relative_path.find("/http/") >= 0: |
| port = 8081 |
| - if port: |
| + # Make LayoutTests/http/tests/local run as local files. This is to mimic the |
| + # logic in run-webkit-tests. |
| + # TODO: Should we also extend this to media/? |
|
ojan
2009/09/11 03:23:04
nit: TODO(jianli). Even if you don't intend to do
|
| + if port and not relative_path.startswith("local/"): |
| if relative_path.startswith("ssl/"): |
| port += 443 |
| protocol = "https" |
| else: |
| protocol = "http" |
| return "%s://127.0.0.1:%u/%s" % (protocol, port, relative_path) |
| - else: |
| - return "file:///" + GetAbsolutePath(full_path) |
| + return "file:///" + GetAbsolutePath(full_path) |
| + |
| def GetAbsolutePath(path): |
| """Returns an absolute UNIX path.""" |
| return _WinPathToUnix(os.path.abspath(path)) |