فهرست منبع

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