aboutsummaryrefslogtreecommitdiff
path: root/tests/testutils/debiangittestrepo.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testutils/debiangittestrepo.py')
-rw-r--r--tests/testutils/debiangittestrepo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testutils/debiangittestrepo.py b/tests/testutils/debiangittestrepo.py
index 9a9ee07d..c52c5f17 100644
--- a/tests/testutils/debiangittestrepo.py
+++ b/tests/testutils/debiangittestrepo.py
@@ -12,12 +12,14 @@ class DebianGitTestRepo(unittest.TestCase):
"""Scratch repo for a single unit test"""
def setUp(self, repo_cls=None):
+ name = 'test_repo'
self.tmpdir = context.new_tmpdir(__name__)
if repo_cls is None:
repo_cls = gbp.deb.git.DebianGitRepository
- repodir = self.tmpdir.join('test_repo')
+ repodir = self.tmpdir.join(name)
+ self.repodir = os.path.join(str(self.tmpdir), name)
self.repo = repo_cls.create(repodir)
def tearDown(self):