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

Unified Diff: webkit/tools/layout_tests/layout_package/path_utils.py

Issue 201048: Support running tests under LayoutTests/http/tests/local as local file, in or... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
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))

Powered by Google App Engine
This is Rietveld 408576698