Fix WindowsError for CI

This commit is contained in:
Ivan Kravets
2015-05-18 18:10:24 +03:00
parent 5d54727139
commit dd4fa733e1

View File

@ -90,7 +90,10 @@ def cli(ctx, src, lib, exclude, board, # pylint: disable=R0913
ctx.invoke(cmd_run, project_dir=build_dir, verbose=verbose)
finally:
if not keep_build_dir:
rmtree(build_dir)
try:
rmtree(build_dir)
except WindowsError:
pass
def _clean_dir(dirpath):