HDDS-2205. checkstyle.sh reports wrong failure count

Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
Doroszlai, Attila 2019-09-30 09:35:14 +02:00 committed by Anu Engineer
parent 4d3c580b03
commit e5bba592a8

View File

@ -36,7 +36,7 @@ find "." -name checkstyle-errors.xml -print0 \
| tee "$REPORT_FILE" | tee "$REPORT_FILE"
## generate counter ## 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 if [[ -s "${REPORT_FILE}" ]]; then
exit 1 exit 1