!74 cherry -pick主干L1 linux xdevice工具问题修改

Merge pull request !74 from 余明星/cherry-pick-1642152597
This commit is contained in:
openharmony_ci
2022-01-15 06:19:27 +00:00
committed by Gitee
+5
View File
@@ -348,6 +348,11 @@ class MountKit(ITestKit):
# local copy
else:
for count in range(1, 4):
try:
os.remove(os.path.join(remote_info.get("dir"),
os.path.basename(_file)))
except Exception as _:
pass
shutil.copy(_file, remote_info.get("dir"))
if check_server_file(_file, remote_info.get("dir")):
break