binman: Fix up removal of temporary directories
authorSimon Glass <sjg@chromium.org>
Tue, 2 Oct 2018 03:12:41 +0000 (21:12 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 8 Oct 2018 13:34:34 +0000 (07:34 -0600)
commite0e6275f4c6cbcf2b975dbd9771b14f21eb51a36
tree79a413610800f0c24082f194b3c4d2c862b1e5a1
parented59e005e6ed388609749d52e98804b76db095d1
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>
tools/binman/elf_test.py
tools/binman/entry_test.py
tools/binman/fdt_test.py
tools/binman/ftest.py
tools/dtoc/test_fdt.py