[elbe-devel] [PATCH 2/3] tests test_efilesystem: Delete temporary fs

Olivier Dion dion at linutronix.de
Tue Jun 9 05:18:52 CEST 2020


Otherwise your /tmp will get filled pretty quickly if you do a lot of
testing and you will see obscure errors.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/tests/test_efilesystem.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elbepack/tests/test_efilesystem.py b/elbepack/tests/test_efilesystem.py
index f1bfa3aa..57305ad8 100644
--- a/elbepack/tests/test_efilesystem.py
+++ b/elbepack/tests/test_efilesystem.py
@@ -15,6 +15,10 @@ class TestCopyFilelist(unittest.TestCase):
         self.src = TmpdirFilesystem()
         self.dst = TmpdirFilesystem()
 
+    def tearDown(self):
+        del self.src
+        del self.dst
+
     def test_usrmerge_abs(self):
 
         self.src.mkdir_p('/usr/bin')
-- 
2.27.0




More information about the elbe-devel mailing list