Commit 00dc7a8ae108ba805e942e381355b940adaed5fb
1 parent
1686550e
卡务测试用例跟新
Showing
1 changed file
with
3 additions
and
1 deletions
commons/scripts/delReport.py
@@ -13,8 +13,10 @@ import os,sys | @@ -13,8 +13,10 @@ import os,sys | ||
13 | 13 | ||
14 | def delReport(path,delNum=5): | 14 | def delReport(path,delNum=5): |
15 | file_list = os.listdir(os.path.abspath(os.path.join(path, "../")) + "/report/") | 15 | file_list = os.listdir(os.path.abspath(os.path.join(path, "../")) + "/report/") |
16 | + print("delReport file_lis --- ", file_list) | ||
16 | if len(file_list) > delNum: | 17 | if len(file_list) > delNum: |
17 | - file_list = file_list[:(0-delNum)] | 18 | + file_list = file_list[:0-delNum] |
19 | + print("if file_lis --- ",file_list) | ||
18 | for i in file_list: | 20 | for i in file_list: |
19 | if os.path.isfile(os.path.abspath(os.path.join(path, "../")) + "/report/" + i) and ".log" not in i: | 21 | if os.path.isfile(os.path.abspath(os.path.join(path, "../")) + "/report/" + i) and ".log" not in i: |
20 | os.remove(os.path.abspath(os.path.join(path, "../")) + "/report/" + i) | 22 | os.remove(os.path.abspath(os.path.join(path, "../")) + "/report/" + i) |