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

Unified Diff: test/mjsunit/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/mjsunit/testcfg.py
diff --git a/test/mjsunit/testcfg.py b/test/mjsunit/testcfg.py
index 4fbdcfca26626d7867e1d920a9832e382f5fe642..7af7acf0a927e2ac034aa459cd4aaa796618ea14 100644
--- a/test/mjsunit/testcfg.py
+++ b/test/mjsunit/testcfg.py
@@ -52,7 +52,9 @@ class MjsunitTestSuite(testsuite.TestSuite):
files.sort()
for filename in files:
if filename.endswith(".js") and filename != "mjsunit.js":
- testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3])
+ fullpath = os.path.join(dirname, filename)
+ relpath = fullpath[len(self.root) + 1 : -3]
+ testname = relpath.replace(os.path.sep, "/")
test = testcase.TestCase(self, testname)
tests.append(test)
return tests
« no previous file with comments | « test/message/testcfg.py ('k') | test/mozilla/testcfg.py » ('j') | test/mozilla/testcfg.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698