tetst:modify comments

This commit is contained in:
chenhaoran 2024-10-14 14:23:25 +08:00
parent 1980866fd9
commit 418319ef29
1 changed files with 2 additions and 2 deletions

View File

@ -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}")