From: Alex Riesen Date: Thu, 1 Nov 2007 14:01:58 +0000 (+0100) Subject: Do no colorify test output if stdout is not a terminal X-Git-Tag: v1.5.4-rc0~291 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f31dfa604c83fd998f7b57942a7bac4defc8c435;p=git.git Do no colorify test output if stdout is not a terminal like when the output is redirected into a file in a cron job. Signed-off-by: Junio C Hamano --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 714de6e57..603a8cd5e 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -60,6 +60,7 @@ esac # . ./test-lib.sh [ "x$TERM" != "xdumb" ] && + [ -t 1 ] && tput bold >/dev/null 2>&1 && tput setaf 1 >/dev/null 2>&1 && tput sgr0 >/dev/null 2>&1 &&