Commit 00dc7a8ae108ba805e942e381355b940adaed5fb

Authored by liujiqiang
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 13  
14 14 def delReport(path,delNum=5):
15 15 file_list = os.listdir(os.path.abspath(os.path.join(path, "../")) + "/report/")
  16 + print("delReport file_lis --- ", file_list)
16 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 20 for i in file_list:
19 21 if os.path.isfile(os.path.abspath(os.path.join(path, "../")) + "/report/" + i) and ".log" not in i:
20 22 os.remove(os.path.abspath(os.path.join(path, "../")) + "/report/" + i)
... ...