Do no colorify test output if stdout is not a terminal
PATCH 1/1 Do no colorify test output if stdout is not a terminal
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(-)
t/test-lib.sh +1 -0
@@ -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 &&
Signature · 1 line
1.5.3.4.549.g2789
Good catch. Thanks.