From 2a4d065864ad8d958e6708c413bef07a2e0a0169 Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Tue, 24 Sep 2024 05:58:23 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caohongtao --- build_tools/gcc-tools/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build_tools/gcc-tools/main.py b/build_tools/gcc-tools/main.py index 85450117..916e2faa 100644 --- a/build_tools/gcc-tools/main.py +++ b/build_tools/gcc-tools/main.py @@ -78,7 +78,7 @@ def main(): if not tar_and_upload_all(): return - logger.info("all task finishd successful") + logger.info("all task finished successful") def check_param(): @@ -142,7 +142,7 @@ def get_ssh_client(): pri_key = RSAKey.from_private_key_file(SKEY) sshCli.connect(hostname = IP, username = USER, pkey=pri_key) except SSHException: - logger.error("ssh init faild") + logger.error("ssh init failed") return None,None return sshCli, sshCli.open_sftp() @@ -249,7 +249,7 @@ def tar_and_upload(origin, target, cwd): encoding = "utf-8", cwd = cwd) if output.returncode != 0: - logger.info("{} tar step faield".format(target)) + logger.info("{} tar step failed".format(target)) logger.error(output.stderr) return False logger.info("finished {} tar step".format(target)) @@ -259,7 +259,7 @@ def tar_and_upload(origin, target, cwd): source = os.path.join(cwd, target + ".tar.gz") dst = os.path.join(BASEDST, "gcc") if not upload(source = source, dst = dst): - logger.error("upload {}.tar.gz faield".format(target)) + logger.error("upload {}.tar.gz failed".format(target)) return False logger.info("upload {}.tar.gz successful".format(target)) @@ -277,7 +277,7 @@ def upload(source, dst): sshCli, sftpCli = get_ssh_client() if sshCli == None: - logger.error("ssh connect faild in upload function") + logger.error("ssh connect failed in upload function") return False try: -- Gitee