yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [1/2] yetus git commit: YETUS-92. checkstyle bogus screen output
Date Sat, 24 Oct 2015 04:07:06 GMT
Repository: yetus
Updated Branches:
  refs/heads/master f08389b47 -> de19e7b98


YETUS-92. checkstyle bogus screen output

Signed-off-by: Allen Wittenauer <aw@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/8d459bbb
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/8d459bbb
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/8d459bbb

Branch: refs/heads/master
Commit: 8d459bbbad34b310136ceba460bd32958a236e8f
Parents: f08389b
Author: Kengo Seki <sekikn@gmail.com>
Authored: Fri Oct 23 00:19:07 2015 +0900
Committer: Allen Wittenauer <aw@apache.org>
Committed: Fri Oct 23 21:03:59 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.d/checkstyle.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/8d459bbb/dev-support/test-patch.d/checkstyle.sh
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.d/checkstyle.sh b/dev-support/test-patch.d/checkstyle.sh
index b73550f..24b9ffc 100755
--- a/dev-support/test-patch.d/checkstyle.sh
+++ b/dev-support/test-patch.d/checkstyle.sh
@@ -164,6 +164,7 @@ function checkstyle_postapply
 {
   local result
   local module
+  local mod
   local fn
   local i=0
   local numprepatch=0
@@ -216,9 +217,13 @@ function checkstyle_postapply
       # shellcheck disable=SC2016
       numpostpatch=$(wc -l "${PATCH_DIR}/patch-checkstyle-${fn}.txt" | ${AWK} '{print $1}')
 
+      mod=${module}
+      if [[ ${mod} == . ]]; then
+        mod=root
+      fi
       module_status ${i} -1 "diff-checkstyle-${fn}.txt" "Patch generated "\
         "${diffpostpatch} new checkstyle issues in "\
-        "${module} (total was ${numprepatch}, now ${numpostpatch})."
+        "${mod} (total was ${numprepatch}, now ${numpostpatch})."
     fi
     ((i=i+1))
   done


Mime
View raw message