mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
buildman: Don't remove entire output directory when testing
When running tests the output directory is often wiped. This is only safe if a branch is being built. The output directory may contain other things besides the buildman test output. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
5971ab5c44
commit
0740127f4d
1 changed files with 2 additions and 1 deletions
|
@ -215,7 +215,8 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None,
|
|||
# output directory itself rather than any subdirectory.
|
||||
if not options.no_subdirs:
|
||||
output_dir = os.path.join(options.output_dir, dirname)
|
||||
if clean_dir and os.path.exists(output_dir):
|
||||
if (clean_dir and output_dir != options.output_dir and
|
||||
os.path.exists(output_dir)):
|
||||
shutil.rmtree(output_dir)
|
||||
builder = Builder(toolchains, output_dir, options.git_dir,
|
||||
options.threads, options.jobs, gnu_make=gnu_make, checkout=True,
|
||||
|
|
Loading…
Add table
Reference in a new issue