diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2019-10-28 07:25:00 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-29 16:17:39 -0400 |
commit | 578b6372030f670151f109f00a87c0b9b281c998 (patch) | |
tree | 0636342606ef3c0f4945c84024a8530b60bf74e1 | |
parent | bc750bca1246de09ca653141c1add7e10c04a37c (diff) | |
download | u-boot-578b6372030f670151f109f00a87c0b9b281c998.zip u-boot-578b6372030f670151f109f00a87c0b9b281c998.tar.gz u-boot-578b6372030f670151f109f00a87c0b9b281c998.tar.bz2 |
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 <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | tools/buildman/test.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/buildman/test.py b/tools/buildman/test.py index de02f61..ed99b93 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 |