Normalize the test suite path before passing it to basename. basename

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
This commit is contained in:
mads.s.ager@gmail.com 2008-08-29 11:01:05 +00:00
parent adea12f7ab
commit 480a093f54

View File

@ -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