Bug 964102 - Use normpath on the test path before comparing it with the root dir. r=gps

This commit is contained in:
Mark Hammond
2014-01-27 09:00:35 +11:00
parent cbff4ccd74
commit d96bcbdac1

View File

@@ -553,7 +553,7 @@ class XPCShellTestThread(Thread):
# class notation).
if self.tests_root_dir is not None:
self.tests_root_dir = os.path.normpath(self.tests_root_dir)
if self.test_object['here'].find(self.tests_root_dir) != 0:
if os.path.normpath(self.test_object['here']).find(self.tests_root_dir) != 0:
raise Exception('tests_root_dir is not a parent path of %s' %
self.test_object['here'])
relpath = self.test_object['here'][len(self.tests_root_dir):].lstrip('/\\')