aboutsummaryrefslogtreecommitdiff
path: root/runtests.pl
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.pl')
-rw-r--r--runtests.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtests.pl b/runtests.pl
index 2e2b795..2d80f14 100644
--- a/runtests.pl
+++ b/runtests.pl
@@ -16,6 +16,9 @@ if (!(@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;