]> rtime.felk.cvut.cz Git - wvtest.git/commitdiff
wvtestrun: Do not use colors on dumb terminals
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 14 Dec 2010 12:54:06 +0000 (13:54 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Sat, 1 Jan 2011 03:38:56 +0000 (19:38 -0800)
This is helpful for example when the tests are run by compile command
under Emacs.

wvtestrun

index 248a1c54b6601f6a7b1d99c17742ffcf6f0ffae7..f4ce482d7ad928ca8046ff682a0d6f3ca54dac98 100755 (executable)
--- 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);