binman: Fix up removal of temporary directories
[oweals/u-boot.git] / tools / binman / fdt_test.py
index 8ea098f38aec7d630b9c9a45495efc9fd5e1fc88..b9167012d25d96ee1e1a31b9c6f404469798eadc 100644 (file)
@@ -21,6 +21,10 @@ class TestFdt(unittest.TestCase):
         self._indir = tempfile.mkdtemp(prefix='binmant.')
         tools.PrepareOutputDir(self._indir, True)
 
+    @classmethod
+    def tearDownClass(self):
+        tools._FinaliseForTest()
+
     def TestFile(self, fname):
         return os.path.join(self._binman_dir, 'test', fname)