Commit 2cf80244a9c99680d1d69c865c250a19423788c4
1 parent
cfa4f445
更新
Showing
2 changed files
with
3 additions
and
3 deletions
commons/scripts/delReport.py
... | ... | @@ -25,7 +25,7 @@ def delReport(path,delNum=5): |
25 | 25 | file_list = file_list[:0-delNum] |
26 | 26 | # print("if file_lis --- ",file_list) |
27 | 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 | 29 | os.remove(project_path + "/report/" + i) |
30 | 30 | print(f"删除报告 {i} 成功") |
31 | 31 | # 文件已删除 | ... | ... |
report/test.log