aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtests.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtests.pl b/runtests.pl
index 5facbe6..adcc373 100644
--- a/runtests.pl
+++ b/runtests.pl
@@ -16,6 +16,9 @@ if (!(defined $PROG && defined $SPEC)) {
exit 1;
}
+# Disable ANSI colors if we're not hooked up to a terminal
+$ENV{ANSI_COLORS_DISABLED} ||= !-t *STDOUT;
+
my $passed = 0;
my $failed = 0;
my $skipped = 0;