[exporters] make sure to clean .build and BUILD when testing iar

pull/3287/head
Sam Grove 2016-11-17 23:55:10 -06:00
parent 72cdf9d16f
commit 116d8dffdd
1 changed files with 3 additions and 0 deletions

View File

@ -165,8 +165,11 @@ class IAR(Exporter):
os.remove(project_name + ".ewp")
os.remove(project_name + ".ewd")
os.remove(project_name + ".eww")
# legacy output file location
if exists('.build'):
shutil.rmtree('.build')
if exists('BUILD'):
shutil.rmtree('BUILD')
if ret_code !=0:
# Seems like something went wrong.