diff tests/test_rebuildmeta.py @ 867:50c13e01c7e3

test_util: add a load_and_fetch() returning the repo_path
author Patrick Mezard <patrick@mezard.eu>
date Thu, 19 Apr 2012 18:29:28 +0200
parents 312b37bc5e20
children 78db88de9622 3bfb7e985c47
line wrap: on
line diff
--- a/tests/test_rebuildmeta.py
+++ b/tests/test_rebuildmeta.py
@@ -28,7 +28,8 @@ def _do_case(self, name, stupid, single)
     layout = 'auto'
     if single:
         layout = 'single'
-    self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid, layout=layout)
+    repo, repo_path = self.load_and_fetch(name, subdir=subdir, stupid=stupid,
+                                          layout=layout)
     assert len(self.repo) > 0
     wc2_path = self.wc_path + '_clone'
     u = ui.ui()
@@ -44,7 +45,7 @@ def _do_case(self, name, stupid, single)
 
     try:
         svncommands.rebuildmeta(u, dest,
-                                args=[test_util.fileurl(self.repo_path +
+                                args=[test_util.fileurl(repo_path +
                                                         subdir), ])
     finally:
         # remove the wrapper