TEST: change to overwrite instead of remove

pull/13580/head
Qinghao Shi 2020-09-09 18:38:05 +01:00
parent f1e885f491
commit e9e53e4ba3
1 changed files with 2 additions and 2 deletions

View File

@ -476,8 +476,8 @@ def symlink_mbedos(config, path, exp_filter):
os.chdir(name) os.chdir(name)
logging.info("In folder '%s'" % name) logging.info("In folder '%s'" % name)
if os.path.exists("mbed-os.lib"): if os.path.exists("mbed-os.lib"):
logging.info("Removing 'mbed-os.lib' in '%s'" % name) logging.info("Replacing 'mbed-os.lib' with empty file in '%s'" % name)
os.remove("mbed-os.lib") open("mbed-os.lib", 'w').close()
else: else:
logging.warning("No 'mbed-os.lib' found in '%s'" % name) logging.warning("No 'mbed-os.lib' found in '%s'" % name)
if os.path.exists("mbed-os"): if os.path.exists("mbed-os"):