From 756106a5c80f391d4c070939d4c16508ee9bf7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=98=8E=E6=98=8E?= Date: Thu, 16 Apr 2020 18:15:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ftp=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 04-CustomLibrary/Custometest/cmd_cer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/04-CustomLibrary/Custometest/cmd_cer.py b/04-CustomLibrary/Custometest/cmd_cer.py index 5c31084..6b9dcdf 100644 --- a/04-CustomLibrary/Custometest/cmd_cer.py +++ b/04-CustomLibrary/Custometest/cmd_cer.py @@ -88,17 +88,17 @@ class Order: sleep(5) fsize = os.path.getsize(linux_path + "/zmmtext123.txt") # 435814 if fsize == 435814: - return "Success" + return "ftp_success" else: - return "Fail" + return "ftp_fail" elif ftp_type == "登录": data = 'curl -m 10 ftp://202.38.97.230/pub/iso/linux/knoppix/KNOPPIX_V7.7.1DVD-2016-10-22-EN/dpkg-l-dvd-771.txt -u"anonymous:chrome@example.com" | iconv -f utf-8 -t gbk' d = self.CMD(data) # print(d) if "Graphical (Xorg) program starter for ADRIANE" in d: - return "Success" + return "ftp_success" else: - return "Fail" + return "ftp_fail" # FTP 下载 def FTP_down(self, ftp_url,file_size,file_name): windows_path = os.getcwd()