UltraMonkey-L7 V3(multi-thread implementation)
修訂 | 48f396ed8b7d78b344e1dc22d8039c226ff607d9 (tree) |
---|---|
時間 | 2010-10-07 22:29:25 |
作者 | 0809216 <0809216@1ed6...> |
Commiter | 0809216 |
change ok/ng check
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10350 1ed66053-1c2d-0410-8867-f7571e6e31d3
@@ -193,13 +193,15 @@ done | ||
193 | 193 | |
194 | 194 | # Count OK and NG |
195 | 195 | echo "############# Summary ###############" | tee -a ${REPORT_FILE} |
196 | -grep -v "^Test failed" ${REPORT_FILE} | | |
197 | -awk 'BEGIN{OkCon=0;NgCon=0;} | |
198 | - {if($2 == "OK") | |
199 | - OkCon++; | |
200 | - if($2 == "NG") | |
201 | - NgCon++;} | |
202 | - END{printf("OK=%d\tNG=%d\n",OkCon,NgCon)}' | tee -a ${REPORT_FILE} | |
196 | +perl -ne "print if m/^[^\t]+\t(?:OK|NG)/" ${REPORT_FILE} | | |
197 | + awk 'BEGIN { OkCon=0; NgCon=0; } | |
198 | + { | |
199 | + if ($2 == "OK") | |
200 | + OkCon++; | |
201 | + if ($2 == "NG") | |
202 | + NgCon++; | |
203 | + } | |
204 | + END { printf("OK=%d\tNG=%d\n", OkCon, NgCon) }' | tee -a ${REPORT_FILE} | |
203 | 205 | LOG "Test scripts end." |
204 | 206 | ################### |
205 | 207 | # Aftertreatment |