소스 검색

HDDS-2205. checkstyle.sh reports wrong failure count

Signed-off-by: Anu Engineer <aengineer@apache.org>
Doroszlai, Attila 5 년 전
부모
커밋
e5bba592a8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hadoop-ozone/dev-support/checks/checkstyle.sh

+ 1 - 1
hadoop-ozone/dev-support/checks/checkstyle.sh

@@ -36,7 +36,7 @@ find "." -name checkstyle-errors.xml -print0 \
   | tee "$REPORT_FILE"
 
 ## generate counter
-wc -l "$REPORT_DIR/summary.txt" | awk '{print $1}'> "$REPORT_DIR/failures"
+grep -c ':' "$REPORT_FILE" > "$REPORT_DIR/failures"
 
 if [[ -s "${REPORT_FILE}" ]]; then
    exit 1