yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [6/8] yetus git commit: YETUS-600. pylint now throws "using config file" to stderr
Date Wed, 17 Jan 2018 16:19:36 GMT
YETUS-600. pylint now throws "using config file" to stderr

Signed-off-by: Sean Busbey <busbey@apache.org>


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

Branch: refs/heads/YETUS-585
Commit: 7da539bd23f29a5217d3805d91e2c940ee83446a
Parents: f94eff3
Author: Allen Wittenauer <aw@apache.org>
Authored: Tue Jan 16 09:10:19 2018 -0800
Committer: Allen Wittenauer <aw@apache.org>
Committed: Wed Jan 17 07:53:50 2018 -0800

----------------------------------------------------------------------
 precommit/test-patch.d/pylint.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/7da539bd/precommit/test-patch.d/pylint.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch.d/pylint.sh b/precommit/test-patch.d/pylint.sh
index e28ca58..facba6c 100755
--- a/precommit/test-patch.d/pylint.sh
+++ b/precommit/test-patch.d/pylint.sh
@@ -85,7 +85,7 @@ function pylint_preapply
     fi
   done
   if [[ -f ${PATCH_DIR}/${pylintStderr} ]]; then
-    count=$(${GREP} -vc "^No config file found" "${PATCH_DIR}/${pylintStderr}")
+    count=$(${GREP}  -Evc "^(No config file found|Using config file)" "${PATCH_DIR}/${pylintStderr}")
     if [[ ${count} -gt 0 ]]; then
       add_footer_table pylint "${PATCH_BRANCH} stderr: @@BASE@@/${pylintStderr}"
       return 1
@@ -132,7 +132,7 @@ function pylint_postapply
     fi
   done
   if [[ -f ${PATCH_DIR}/${pylintStderr} ]]; then
-    count=$(${GREP} -vc "^No config file found" "${PATCH_DIR}/${pylintStderr}")
+    count=$(${GREP}  -Evc "^(No config file found|Using config file)" "${PATCH_DIR}/${pylintStderr}")
     if [[ ${count} -gt 0 ]]; then
       add_vote_table -1 pylint "Something bad seems to have happened in running pylint. Please
check pylint stderr files."
       add_footer_table pylint "${BUILDMODEMSG} stderr: @@BASE@@/${pylintStderr}"


Mime
View raw message