aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2007-11-01 15:01:58 +0100
committerJunio C Hamano <gitster@pobox.com>2007-11-01 15:37:34 -0700
commitf31dfa604c83fd998f7b57942a7bac4defc8c435 (patch)
tree82af20a651f30c1d0c6044a2d8ebb528d9cb1bb8 /t
parent4340a813d007b592534de664d152d66417dbe809 (diff)
downloadgit-f31dfa604c83fd998f7b57942a7bac4defc8c435.tar.gz
git-f31dfa604c83fd998f7b57942a7bac4defc8c435.tar.xz
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 <gitster@pobox.com>
Diffstat (limited to 't')
-rw-r--r--t/test-lib.sh1
1 files changed, 1 insertions, 0 deletions
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 &&