From 418319ef29a134003adae60091e8d7018dd38f2e Mon Sep 17 00:00:00 2001 From: chenhaoran Date: Mon, 14 Oct 2024 14:23:25 +0800 Subject: [PATCH] tetst:modify comments --- tests/army/frame/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/army/frame/common.py b/tests/army/frame/common.py index a91866c0e1..b816095817 100644 --- a/tests/army/frame/common.py +++ b/tests/army/frame/common.py @@ -1842,7 +1842,7 @@ class TDCom: def compare_result_files(self, file1, file2): try: - # 使用 subprocess.run 来执行 diff/fc 命令 + # use subprocess.run to execute diff/fc commands # print(file1, file2) if platform.system().lower() != 'windows': cmd='diff' @@ -1850,7 +1850,7 @@ class TDCom: else: cmd='fc' result = subprocess.run([cmd, file1, file2], text=True, capture_output=True) - # 如果输出不为空,则打印差异 + # if result is not empty, print the differences and files name. Otherwise, the files are identical. if result.stdout: tdLog.debug(f"Differences between {file1} and {file2}") tdLog.notice(f"\r\n{result.stdout}")