From 88f8f755c81a5eabab91e954b31cb434a7efd5dd Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Sun, 11 May 2014 17:05:04 +0000 Subject: [PATCH] HBASE-11152 Disable tput in test-patch.sh (Gustavo) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1593817 13f79535-47bb-0310-9956-ffa450edef68 --- dev-support/test-patch.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index 4386ef925d8..0fccef17759 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -43,9 +43,6 @@ FINDBUGS_HOME=${FINDBUGS_HOME} FORREST_HOME=${FORREST_HOME} ECLIPSE_HOME=${ECLIPSE_HOME} -RED=$(tput setaf 1) -RESET_COLOR=$(tput sgr0) - ############################################################################### printUsage() { echo "Usage: $0 [options] patch-file | defect-number" @@ -337,11 +334,10 @@ checkCompilationErrors() { eval $(awk '/ERROR/ {print "COMPILATION_ERROR=true"}' $file) if $COMPILATION_ERROR ; then ERRORS=$($AWK '/ERROR/ { print $0 }' $file) - echo -e "${RED}======================================================================" - echo -e "${RED} There are compilation errors." - echo -e "${RED}======================================================================" - echo -e "${RED}$ERRORS" - echo -e "${RESET_COLOR}" + echo "======================================================================" + echo "There are compilation errors." + echo "======================================================================" + echo "$ERRORS" JIRA_COMMENT="$JIRA_COMMENT {color:red}-1 javac{color}. The patch appears to cause mvn compile goal to fail.