This is an automated email from the ASF dual-hosted git repository.

achouhan pushed a commit to branch 4.15-HBase-1.5
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.15-HBase-1.5 by this push:
     new 4c7124a  PHOENIX-5737 Hadoop QA run says no tests even though there 
are added IT tests
4c7124a is described below

commit 4c7124af8e1cd0ccebfeb58fa621b01c2569baa9
Author: Sandeep Guggilam <sguggi...@sandeepg-ltm.internal.salesforce.com>
AuthorDate: Thu Feb 20 19:18:03 2020 -0800

    PHOENIX-5737 Hadoop QA run says no tests even though there are added IT 
tests
    
    Signed-off-by: Abhishek Singh Chouhan <achou...@apache.org>
---
 dev/test-patch.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dev/test-patch.sh b/dev/test-patch.sh
index a1161fb..8e22fc4 100755
--- a/dev/test-patch.sh
+++ b/dev/test-patch.sh
@@ -384,7 +384,7 @@ checkTests () {
   echo "======================================================================"
   echo ""
   echo ""
-  testReferences=`$GREP -c -i '/test' $PATCH_DIR/patch`
+  testReferences=`$GREP -c -i '/test\|/it' $PATCH_DIR/patch`
   echo "There appear to be $testReferences test files referenced in the patch."
   if [[ $testReferences == 0 ]] ; then
     if [[ $JENKINS == "true" ]] ; then
@@ -414,9 +414,11 @@ checkTests () {
                         Also please list what manual steps were performed to 
verify this patch."
     return 1
   fi
+  testsAdded=`$GREP -c -i -e '+ \+@Test' $PATCH_DIR/patch`
+  echo "There appear to be $testsAdded new tests added in the patch."
   JIRA_COMMENT="$JIRA_COMMENT
 
-    {color:green}+1 tests included{color}.  The patch appears to include 
$testReferences new or modified tests."
+    {color:green}+1 tests included{color}.  The patch appears to include 
$testsAdded new or modified tests."
   return 0
 }
 

Reply via email to