def test_create(self): """Make sure that repos.create doesn't segfault when we set fs-type using a config hash""" fs_config = { "fs-type": "fsfs" } for i in range(5): path = tempfile.mkdtemp("-test" + str(i)) repos.create(path, "", "", None, fs_config) repos.delete(path)
def test_create(self): """Make sure that repos.create doesn't segfault when we set fs-type using a config hash""" fs_config = {"fs-type": "fsfs"} for i in range(5): path = tempfile.mkdtemp("-test" + str(i)) repos.create(path, "", "", None, fs_config) repos.delete(path)
def delete(self, repos_name): repos_name = repos_name.strip() assert repos_name != "" repos_path = "%(root)s/%(entry)s" % { "root": self.repos_root, "entry": repos_name} if os.path.exists(repos_path): if self.is_blank_svn_repos(repos_name): from svn import repos as _repos return _repos.delete(repos_path) raise Exception, _("Repos %s is not a blank repository.") % repos_name
def tearDown(self): if os.path.exists(REPOS_PATH): repos.delete(REPOS_PATH)