aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-01-20 11:31:37 +0100
committerGuido Günther <agx@sigxcpu.org>2017-01-20 11:57:03 +0100
commitca7d38746546f97436353fcf74e53926fb4c2cc7 (patch)
treed945d515cf5cfa1de5d72440ee5b65289aba409c
parent58473689b81d13300df2cd9aecf65fee97a4432e (diff)
test_buildpackage: make sure we discard temporary trees
so we properly test their recreation when using pristine-tar
-rw-r--r--tests/component/deb/test_buildpackage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/component/deb/test_buildpackage.py b/tests/component/deb/test_buildpackage.py
index c3dea35..a9ba539 100644
--- a/tests/component/deb/test_buildpackage.py
+++ b/tests/component/deb/test_buildpackage.py
@@ -126,6 +126,8 @@ class TestBuildpackage(ComponentTestBase):
assert_true(repo.has_branch('pristine-tar'), "Pristine-tar branch must exist")
for t in tarballs:
self.assertFalse(os.path.exists(t), "Tarball %s must not exist" % t)
+ # Make sure the tree object for importing the main tarball is recreated
+ repo.collect_garbage(prune='all', aggressive=True)
ret = buildpackage(['arg0',
'--git-component=foo',
'--git-pristine-tar',