summaryrefslogtreecommitdiffstats
path: root/webkit/tools/layout_tests/run_webkit_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/layout_tests/run_webkit_tests.py')
-rwxr-xr-xwebkit/tools/layout_tests/run_webkit_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/tools/layout_tests/run_webkit_tests.py b/webkit/tools/layout_tests/run_webkit_tests.py
index f2ebd32..6d2387e 100755
--- a/webkit/tools/layout_tests/run_webkit_tests.py
+++ b/webkit/tools/layout_tests/run_webkit_tests.py
@@ -302,9 +302,9 @@ class TestRunner:
# TODO(ojan): See if we can grab the lowest level directory. That will
# provide better parallelization. We should at least be able to do so
# for some directories (e.g. LayoutTests/dom).
- index = test_file.rfind('/LayoutTests/')
+ index = test_file.rfind(os.sep + 'LayoutTests' + os.sep)
if index is -1:
- index = test_file.rfind('/chrome/')
+ index = test_file.rfind(os.sep + 'chrome' + os.sep)
test_file = test_file[index + 1:]
test_file_parts = test_file.split(os.sep, 1)