aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/fdt_test.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-10-01 21:12:41 -0600
committerSimon Glass <sjg@chromium.org>2018-10-08 07:34:34 -0600
commite0e6275f4c6cbcf2b975dbd9771b14f21eb51a36 (patch)
tree79a413610800f0c24082f194b3c4d2c862b1e5a1 /tools/binman/fdt_test.py
parented59e005e6ed388609749d52e98804b76db095d1 (diff)
downloadu-boot-e0e6275f4c6cbcf2b975dbd9771b14f21eb51a36.zip
u-boot-e0e6275f4c6cbcf2b975dbd9771b14f21eb51a36.tar.gz
u-boot-e0e6275f4c6cbcf2b975dbd9771b14f21eb51a36.tar.bz2
binman: Fix up removal of temporary directories
At present 'make check' leaves some temporary directories around. Part of this is because we call tools.PrepareOutputDir() twice in some cases, without calling tools.FinaliseOutputDir() in between. Fix this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/fdt_test.py')
-rw-r--r--tools/binman/fdt_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/binman/fdt_test.py b/tools/binman/fdt_test.py
index 8ea098f..b916701 100644
--- a/tools/binman/fdt_test.py
+++ b/tools/binman/fdt_test.py
@@ -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)