Commit 518659dc1f5cc4563db4c5a4fd8f5e1dac470c96

Authored by liujiqiang
1 parent 11bd2177

更新

Showing 1 changed file with 1 additions and 1 deletions
commons/scripts/delReport.py
@@ -25,7 +25,7 @@ def delReport(path,delNum=5): @@ -25,7 +25,7 @@ def delReport(path,delNum=5):
25 file_list = file_list[:0-delNum] 25 file_list = file_list[:0-delNum]
26 # print("if file_lis --- ",file_list) 26 # print("if file_lis --- ",file_list)
27 for i in file_list: 27 for i in file_list:
28 - if os.path.isfile(project_path + "/report/" + i) and ".log" not in i: 28 + if os.path.isfile(project_path + "/report/" + i) and ".html" in i:
29 os.remove(project_path + "/report/" + i) 29 os.remove(project_path + "/report/" + i)
30 print(f"删除报告 {i} 成功") 30 print(f"删除报告 {i} 成功")
31 # 文件已删除 31 # 文件已删除