You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ae...@apache.org on 2019/09/30 23:37:07 UTC
[hadoop] branch trunk updated: HDDS-2205. checkstyle.sh reports
wrong failure count
This is an automated email from the ASF dual-hosted git repository.
aengineer pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new e5bba59 HDDS-2205. checkstyle.sh reports wrong failure count
e5bba59 is described below
commit e5bba592a84a94e0545479b668e6925eb4b8858c
Author: Doroszlai, Attila <ad...@apache.org>
AuthorDate: Mon Sep 30 09:35:14 2019 +0200
HDDS-2205. checkstyle.sh reports wrong failure count
Signed-off-by: Anu Engineer <ae...@apache.org>
---
hadoop-ozone/dev-support/checks/checkstyle.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hadoop-ozone/dev-support/checks/checkstyle.sh b/hadoop-ozone/dev-support/checks/checkstyle.sh
index 7a218a4..685bf14 100755
--- a/hadoop-ozone/dev-support/checks/checkstyle.sh
+++ b/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
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org