Reason for revert:
mozilla tests are failing on Windows
Original issue's description:
> [test] Fix cctest path separators on Windows
>
> Now run-tests.py understands "suite/foo/bar" with forward slashes for
> command-line test selection on all test suites on all platforms.
>
> Previously, file-based suites like mjsunit also accepted "mjsunit/foo\bar";
> that behavior is sacrificed here in favor of unification. For the cctest
> suite, OTOH, it wasn't possible on Windows to select specific tests at all.
>
> Committed: https://crrev.com/
b36cfdb39ae648b49a1396c4f669df9b1f57996c
> Cr-Commit-Position: refs/heads/master@{#30794}
TBR=machenbach@google.com,machenbach@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/
1349163002
Cr-Commit-Position: refs/heads/master@{#30795}
for filename in files:
if (filename.endswith(".js") and filename != "assert.js" and
filename != "utils.js"):
- fullpath = os.path.join(dirname, filename)
- relpath = fullpath[len(self.root) + 1 : -3]
- testname = relpath.replace(os.path.sep, "/")
+ testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3])
test = testcase.TestCase(self, testname)
tests.append(test)
return tests
files.sort()
for filename in files:
if filename.endswith(".js"):
- fullpath = os.path.join(dirname, filename)
- relpath = fullpath[len(self.root) + 1 : -3]
- testname = relpath.replace(os.path.sep, "/")
+ testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3])
test = testcase.TestCase(self, testname)
tests.append(test)
return tests
files.sort()
for filename in files:
if filename.endswith(".js") and filename != "mjsunit.js":
- fullpath = os.path.join(dirname, filename)
- relpath = fullpath[len(self.root) + 1 : -3]
- testname = relpath.replace(os.path.sep, "/")
+ testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3])
test = testcase.TestCase(self, testname)
tests.append(test)
return tests
files.sort()
for filename in files:
if filename.endswith(".js") and not filename in FRAMEWORK:
- fullpath = os.path.join(dirname, filename)
- relpath = fullpath[len(self.testroot) + 1 : -3]
- testname = relpath.replace(os.path.sep, "/")
+ testname = os.path.join(dirname[len(self.testroot) + 1:],
+ filename[:-3])
case = testcase.TestCase(self, testname)
tests.append(case)
return tests
files.sort()
for filename in files:
if filename.endswith(".js"):
- fullpath = os.path.join(dirname, filename)
- relpath = fullpath[len(self.testroot) + 1 : -3]
- testname = relpath.replace(os.path.sep, "/")
+ testname = os.path.join(dirname[len(self.testroot) + 1:],
+ filename[:-3])
case = testcase.TestCase(self, testname)
tests.append(case)
return tests
files.sort()
for filename in files:
if filename.endswith(".js"):
- fullpath = os.path.join(dirname, filename)
- relpath = fullpath[len(self.testroot) + 1 : -3]
- testname = relpath.replace(os.path.sep, "/")
+ testname = os.path.join(dirname[len(self.testroot) + 1:],
+ filename[:-3])
case = testcase.TestCase(self, testname)
tests.append(case)
return tests
files.sort()
for filename in files:
if filename.endswith(".js"):
- fullpath = os.path.join(dirname, filename)
- relpath = fullpath[len(self.root) + 1 : -3]
- testname = relpath.replace(os.path.sep, "/")
+ testname = os.path.join(dirname[len(self.root) + 1:], filename[:-3])
test = testcase.TestCase(self, testname)
tests.append(test)
return tests
continue
if len(argpath) == 1 or (len(argpath) == 2 and argpath[1] == '*'):
return # Don't filter, run all tests in this suite.
- path = '/'.join(argpath[1:])
+ path = os.path.sep.join(argpath[1:])
if path[-1] == '*':
path = path[:-1]
globs.append(path)