yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [14/20] yetus git commit: YETUS-356. build driver: author plug-in still mentions patches
Date Thu, 14 Apr 2016 07:25:09 GMT
YETUS-356. build driver: author plug-in still mentions patches

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/c68dbda9
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/c68dbda9
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/c68dbda9

Branch: refs/heads/YETUS-156
Commit: c68dbda997100a7995125df2c3a606460fcd9f18
Parents: c9754c0
Author: Allen Wittenauer <aw@apache.org>
Authored: Tue Apr 12 13:55:17 2016 -0700
Committer: Allen Wittenauer <aw@apache.org>
Committed: Thu Apr 14 00:24:45 2016 -0700

----------------------------------------------------------------------
 precommit/test-patch.d/author.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/c68dbda9/precommit/test-patch.d/author.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch.d/author.sh b/precommit/test-patch.d/author.sh
index 2e148d8..3d6e393 100755
--- a/precommit/test-patch.d/author.sh
+++ b/precommit/test-patch.d/author.sh
@@ -26,10 +26,17 @@ function author_generic
 {
   declare authortags
   declare i
+  declare msg
+
+  if [[ "${BUILDMODE}" = full ]]; then
+    msg="patch"
+  else
+    msg="source tree"
+  fi
 
   # shellcheck disable=SC2016
   authortags=$(wc -l "${PATCH_DIR}/author-tags.txt" | "${AWK}" '{print $1}')
-  echo "There appear to be ${authortags} @author tags in the patch."
+  echo "There appear to be ${authortags} @author tags in the ${msg}."
   if [[ ${authortags} != 0 ]] ; then
     add_vote_table -1 @author \
       "${BUILDMODEMSG} appears to contain ${authortags} @author tags which the" \


Mime
View raw message