* [PATCH] Do no colorify test output if stdout is not a terminal
@ 2007-11-01 14:01 Alex Riesen
2007-11-01 22:47 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Alex Riesen @ 2007-11-01 14:01 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano
like when the output is redirected into a file in a cron job.
---
t/test-lib.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 714de6e..603a8cd 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 &&
--
1.5.3.4.549.g2789
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Do no colorify test output if stdout is not a terminal
2007-11-01 14:01 [PATCH] Do no colorify test output if stdout is not a terminal Alex Riesen
@ 2007-11-01 22:47 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2007-11-01 22:47 UTC (permalink / raw)
To: Alex Riesen; +Cc: git
Good catch. Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-01 22:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-01 14:01 [PATCH] Do no colorify test output if stdout is not a terminal Alex Riesen
2007-11-01 22:47 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).