Normalize the test suite path before passing it to basename. basename
authormads.s.ager@gmail.com <mads.s.ager@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 29 Aug 2008 11:01:05 +0000 (11:01 +0000)
committermads.s.ager@gmail.com <mads.s.ager@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 29 Aug 2008 11:01:05 +0000 (11:01 +0000)
returns '' if the path ends in a path separator.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@45 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

tools/test.py

index 357dfb3146d3e41718d08d7601b75b9a71d0cf8a..ddf2d511738c0e18b2359b07b3267161838e1a97 100755 (executable)
@@ -394,8 +394,9 @@ class TestSuite(object):
 class TestRepository(TestSuite):
 
   def __init__(self, path):
-    super(TestRepository, self).__init__(basename(path))
-    self.path = abspath(path)
+    normalized_path = abspath(path)
+    super(TestRepository, self).__init__(basename(normalized_path))
+    self.path = normalized_path
     self.is_loaded = False
     self.config = None