tools: buildman: Remove useless mkdir() in Make() in test.py
authorBin Meng <bmeng.cn@gmail.com>
Mon, 28 Oct 2019 14:25:00 +0000 (07:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 29 Oct 2019 20:17:39 +0000 (16:17 -0400)
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>
tools/buildman/test.py

index de02f61be6589f48ed933f43293d2563bc9548d3..ed99b9375c403d473c8e7694b2322c78093a02f4 100644 (file)
@@ -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