summaryrefslogtreecommitdiff
path: root/tests/unittests
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-09-08 11:41:13 -0400
committerScott Moser <smoser@brickies.net>2016-09-08 11:41:13 -0400
commit636deb452d4b448bac4ee83f2a49939982385fe6 (patch)
tree8380e054a7ce02066dd200a9036bc3c839212eef /tests/unittests
parent058dd753b91126a504a82d4a48305e9d56116f73 (diff)
downloadvyos-cloud-init-636deb452d4b448bac4ee83f2a49939982385fe6.tar.gz
vyos-cloud-init-636deb452d4b448bac4ee83f2a49939982385fe6.zip
tests: cleanup tempdirs in apt_source tests
test_handler_apt_source_v3.py was not cleaning up all its tmp dirs.
Diffstat (limited to 'tests/unittests')
-rw-r--r--tests/unittests/test_handler/test_handler_apt_source_v3.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/test_handler/test_handler_apt_source_v3.py b/tests/unittests/test_handler/test_handler_apt_source_v3.py
index 75556b6d..b92a50d7 100644
--- a/tests/unittests/test_handler/test_handler_apt_source_v3.py
+++ b/tests/unittests/test_handler/test_handler_apt_source_v3.py
@@ -63,6 +63,7 @@ class TestAptSourceConfig(t_help.FilesystemMockingTestCase):
self.tmp = tempfile.mkdtemp()
self.new_root = tempfile.mkdtemp()
self.addCleanup(shutil.rmtree, self.tmp)
+ self.addCleanup(shutil.rmtree, self.new_root)
self.aptlistfile = os.path.join(self.tmp, "single-deb.list")
self.aptlistfile2 = os.path.join(self.tmp, "single-deb2.list")
self.aptlistfile3 = os.path.join(self.tmp, "single-deb3.list")