Преглед на файлове

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