PHOENIX-5737 Hadoop QA run says no tests even though there are added IT tests

Signed-off-by: Abhishek Singh Chouhan <achouhan@apache.org>
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 @@
   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 @@
                         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
 }