summaryrefslogtreecommitdiffstats
path: root/WebKitTools/Scripts/webkitpy/layout_tests/port/dryrun.py
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/Scripts/webkitpy/layout_tests/port/dryrun.py')
-rw-r--r--WebKitTools/Scripts/webkitpy/layout_tests/port/dryrun.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/WebKitTools/Scripts/webkitpy/layout_tests/port/dryrun.py b/WebKitTools/Scripts/webkitpy/layout_tests/port/dryrun.py
index 2cbb1b9..2c92865 100644
--- a/WebKitTools/Scripts/webkitpy/layout_tests/port/dryrun.py
+++ b/WebKitTools/Scripts/webkitpy/layout_tests/port/dryrun.py
@@ -46,6 +46,8 @@
from __future__ import with_statement
+import sys
+
import base
import factory
@@ -172,7 +174,11 @@ class DryrunDriver(base.Driver):
test = uri
if uri.startswith("file:///"):
- test = test.replace('file://', '')
+ if sys.platform == 'win32':
+ test = test.replace('file:///', '')
+ test = test.replace('/', '\\')
+ else:
+ test = test.replace('file://', '')
return test
elif uri.startswith("http://127.0.0.1:8880/"):
# websocket tests