comparison tests/test_push_command.py @ 872:a279b5838aaf

test_util: remove self.repo_path, generate new paths each time This solves a problem with startrev tests sporadically failing in ra.get_log() with some kind of svn corruption error. Loading each svn repository in a different place solved that, or at least prevented me from reproducing it. What is interesting is this is the same fixture being loaded each time. Also, before loading the fixture, we take care of removing an existing repository. Loading with the same options twice also failed reproducing the issue. Same thing if the first load only load the svn repository but does not convert it. So, I have absolutely no idea what was wrong, blame python subprocess, subversion or some kind of filesystem write ordering bug.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 19 Apr 2012 18:29:32 +0200
parents 20e73b5ab6f7
children 173065f9b715
comparison
equal deleted inserted replaced
871:51fd75ae62b9 872:a279b5838aaf
21 21
22 22
23 class PushTests(test_util.TestBase): 23 class PushTests(test_util.TestBase):
24 def setUp(self): 24 def setUp(self):
25 test_util.TestBase.setUp(self) 25 test_util.TestBase.setUp(self)
26 self._load_fixture_and_fetch('simple_branch.svndump') 26 self.repo_path = self.load_and_fetch('simple_branch.svndump')[1]
27 27
28 def test_cant_push_empty_ctx(self): 28 def test_cant_push_empty_ctx(self):
29 repo = self.repo 29 repo = self.repo
30 def file_callback(repo, memctx, path): 30 def file_callback(repo, memctx, path):
31 if path == 'adding_file': 31 if path == 'adding_file':