From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Mon, 28 Oct 2019 07:25:00 -0700 Subject: [U-Boot] [PATCH v2 2/5] tools: buildman: Remove useless mkdir() in Make() in test.py In-Reply-To: <1572272704-31204-1-git-send-email-bmeng.cn@gmail.com> References: <1572272704-31204-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1572272704-31204-3-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Changes in v2: - remove the unneeded debug codes tools/buildman/test.py | 8 -------- 1 file changed, 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 -- 2.7.4