From 9f46fc5e8495af7316d086c2576b535544b144a6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 16 Aug 2014 11:55:26 -0400 Subject: Support colors in test logs --- (limited to 'tests') diff --git a/tests/common.sh b/tests/common.sh index 93f8d53..f7467ee 100644 --- a/tests/common.sh +++ b/tests/common.sh @@ -55,3 +55,14 @@ assert() tests_es=1 fi } + +if [ "x${COLOR_TEST_LOGS:-no}" = 'xno' ]; then + red= grn= lgn= blu= mgn= std= +else + red='' # Red. + grn='' # Green. + lgn='' # Light green. + blu='' # Blue. + mgn='' # Magenta. + std='' # No color. +fi -- cgit v0.9.1