update src/xdevice/_core/testkit/kit_lite.py.

Signed-off-by: yumingxing<yumingxing2@huawei.com>
This commit is contained in:
余明星
2022-01-14 03:38:08 +00:00
committed by Gitee
parent 4aa728d17c
commit 3e38e4cd2d
+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