@@ -147,20 +147,20 @@ def log_statistic(i_path):
147147 ws .write (i - 1 , COL_Report_Hyperlink , xlwt .Formula ('Hyperlink("%s")' % f_httpname ))
148148 ws .write (i - 1 , COL_remarks , f_httpname )
149149 # estimate the times that the "ATE restart button" have be clicked.
150- soup = BeautifulSoup (open (f_fullname ),"lxml" )
151- for child in soup .descendants :
152- if child .string == ("\n " + "art_dn.sh" ):
153- if n > 0 :
154- ws .write (i - 1 , COL_Restart_Times , n ,style2 )
155- n = n + 1
156- if child .string == "FAIL" :
157- #if p%2 == 1:
158- #print(child.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.string)
159- #if (child.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.string) <> "-":
160- #temp_1 += (child.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.string + "\n")
161- #ws.write(i-1,COL_Fail_Comments,temp_1[:-1])
162- #p = p + 1
163- ws .write (i - 1 ,COL_Fail_Comments ,child .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .string )
150+ soup = BeautifulSoup (open (f_fullname ),"lxml" )
151+ for child in soup .descendants :
152+ if child .string == ("\n " + "art_dn.sh" ):
153+ if n > 0 :
154+ ws .write (i - 1 , COL_Restart_Times , n ,style2 )
155+ n = n + 1
156+ if child .string == "FAIL" :
157+ #if p%2 == 1:
158+ #print(child.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.string)
159+ #if (child.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.string) <> "-":
160+ #temp_1 += (child.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.next.string + "\n")
161+ #ws.write(i-1,COL_Fail_Comments,temp_1[:-1])
162+ #p = p + 1
163+ ws .write (i - 1 ,COL_Fail_Comments ,child .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .next .string )
164164 # caculate the number of illegal .html log
165165 ws .write (i + 1 , COL_Log_Quantity , "invalid_file_name = " )
166166 ws .write (i + 2 , COL_Log_Quantity , invalid_file_name )
0 commit comments