From: Bin Meng Date: Mon, 28 Oct 2019 14:25:00 +0000 (-0700) Subject: tools: buildman: Remove useless mkdir() in Make() in test.py X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=578b6372030f670151f109f00a87c0b9b281c998;p=u-boot.git tools: buildman: Remove useless mkdir() in Make() in test.py In the 'Make' function, the codes tries to create a directory if current stage is 'build'. But the directory isn't used at all anywhere. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- diff --git a/tools/buildman/test.py b/tools/buildman/test.py index de02f61be6..ed99b9375c 100644 --- a/tools/buildman/test.py +++ b/tools/buildman/test.py @@ -156,14 +156,6 @@ class TestBuild(unittest.TestCase): result.return_code = commit.return_code result.stderr = (''.join(commit.error_list) % {'basedir' : base_dir + '/.bm-work/00/'}) - if stage == 'build': - target_dir = None - for arg in args: - if arg.startswith('O='): - target_dir = arg[2:] - - if not os.path.isdir(target_dir): - os.mkdir(target_dir) result.combined = result.stdout + result.stderr return result