summaryrefslogtreecommitdiff
path: root/test/testlib/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/testlib/helper.py')
-rw-r--r--test/testlib/helper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testlib/helper.py b/test/testlib/helper.py
index 27c2b3d9..5599f05e 100644
--- a/test/testlib/helper.py
+++ b/test/testlib/helper.py
@@ -82,6 +82,7 @@ def with_bare_rw_repo(func):
try:
return func(self, rw_repo)
finally:
+ rw_repo.git.clear_cache()
shutil.rmtree(repo_dir)
# END cleanup
# END bare repo creator
@@ -107,6 +108,7 @@ def with_rw_repo(working_tree_ref):
try:
return func(self, rw_repo)
finally:
+ rw_repo.git.clear_cache()
shutil.rmtree(repo_dir)
# END cleanup
# END rw repo creator
@@ -179,6 +181,8 @@ def with_rw_and_rw_remote_repo(working_tree_ref):
try:
return func(self, rw_repo, rw_remote_repo)
finally:
+ rw_repo.git.clear_cache()
+ rw_remote_repo.git.clear_cache()
shutil.rmtree(repo_dir)
shutil.rmtree(remote_repo_dir)
# END cleanup