From b86c66968c17e266ea71e1f6bd27dae8ee867781 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 14 Dec 2010 13:54:06 +0100 Subject: [PATCH] wvtestrun: Do not use colors on dumb terminals This is helpful for example when the tests are run by compile command under Emacs. --- wvtestrun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wvtestrun b/wvtestrun index 248a1c5..f4ce482 100755 --- a/wvtestrun +++ b/wvtestrun @@ -27,7 +27,7 @@ if (!$pid) { exit 126; # just in case } -my $istty = -t STDOUT; +my $istty = -t STDOUT && $ENV{'TERM'} ne "dumb"; my @log = (); my ($gpasses, $gfails) = (0,0); -- 2.39.2