summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author朱明明 <[email protected]>2020-04-16 17:41:31 +0800
committer朱明明 <[email protected]>2020-04-16 17:41:31 +0800
commit7bdf2695e19990471c8ed950ed6522e97a2389f1 (patch)
treeae4037752ca9a21937ba02c0d4c523f08ece4aec
parentacc676857bd85512f344a8d06aa1ae8846e7c0db (diff)
修改ftp返回patch-2
-rw-r--r--04-CustomLibrary/Custometest/cmd_cer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/04-CustomLibrary/Custometest/cmd_cer.py b/04-CustomLibrary/Custometest/cmd_cer.py
index 6e6e636..02e782c 100644
--- a/04-CustomLibrary/Custometest/cmd_cer.py
+++ b/04-CustomLibrary/Custometest/cmd_cer.py
@@ -110,9 +110,9 @@ class Order:
fsize = os.path.getsize(linux_path + "/"+fiel_name) # 435814
print(fsize)
if fsize == file_size:
- return "Success"
+ return "ftp_success"
else:
- return "Fail"
+ return "ftp_fail"
# FTP 登录
def FTP_login(self, ftp_url,file_content):
@@ -120,9 +120,9 @@ class Order:
d = self.CMD(data)
# print(d)
if file_content in d:
- return "Success"
+ return "ftp_success"
else:
- return "Fail"
+ return "ftp_fail"
if __name__ == '__main__':
datas = {"url":['https://www.baidu.com'],