Chromium Code Reviews| Index: test/mozilla/testcfg.py |
| diff --git a/test/mozilla/testcfg.py b/test/mozilla/testcfg.py |
| index 70a7ac663cde287e87f73808dd1fed2d96f41139..c6bfc1fda8546bc917f8f9851e845d18ab89f6d7 100644 |
| --- a/test/mozilla/testcfg.py |
| +++ b/test/mozilla/testcfg.py |
| @@ -81,8 +81,9 @@ class MozillaTestSuite(testsuite.TestSuite): |
| files.sort() |
| for filename in files: |
| if filename.endswith(".js") and not filename in FRAMEWORK: |
| - 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 |
| @@ -93,7 +94,7 @@ class MozillaTestSuite(testsuite.TestSuite): |
| result += ["--expose-gc"] |
| result += [os.path.join(self.root, "mozilla-shell-emulation.js")] |
| testfilename = testcase.path + ".js" |
| - testfilepath = testfilename.split(os.path.sep) |
| + testfilepath = testfilename.split("/") |
| for i in xrange(len(testfilepath)): |
| script = os.path.join(self.testroot, |
| reduce(os.path.join, testfilepath[:i], ""), |
|
Michael Achenbach
2015/09/17 12:49:19
Fly-by code spottin:
reduce(os.path.join, testfile
|