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

Unified Diff: test/test262-es6/testcfg.py

Issue 1356613002: Reland "[test] Fix cctest path separators on Windows" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mozilla tests Created 5 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: test/test262-es6/testcfg.py
diff --git a/test/test262-es6/testcfg.py b/test/test262-es6/testcfg.py
index f9e9a3946b7ea1a7a0b427ec5e134d30b115d752..49a9b254a09e6475c47573b2562711e890e52a7b 100644
--- a/test/test262-es6/testcfg.py
+++ b/test/test262-es6/testcfg.py
@@ -119,8 +119,9 @@ class Test262TestSuite(testsuite.TestSuite):
files.sort()
for filename in files:
if filename.endswith(".js"):
- testname = os.path.join(dirname[len(self.testroot) + 1:],
- filename[:-3])
+ fullpath = os.path.join(dirname, filename)
+ relpath = fullpath[len(self.testroot) + 1 : -3]
+ testname = relpath.replace(os.path.sep, "/")
case = testcase.TestCase(self, testname)
tests.append(case)
return tests
« test/mozilla/testcfg.py ('K') | « test/mozilla/testcfg.py ('k') | test/test262/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698