[PATCH v2 04/28] buildman: Create temp directory in test setup

sjg at google.com sjg at google.com
Sat Apr 18 01:29:49 CEST 2020


Rather than having a few tests handle this themselves, create the
temporary directory in the setUp() method and remove it in tearDown().
This will make it easier to add more tests.

Only testOutput and testGit() actually need it, but it doesn't add to the
test time noticeably to do this for all tests in this file.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v2: None

 tools/buildman/test.py | 26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list