HDDS-2205. checkstyle.sh reports wrong failure count
Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
parent
4d3c580b03
commit
e5bba592a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user