From: Evan Hunt Date: Fri, 25 May 2018 19:47:02 +0000 (-0700) Subject: fix openbsd color-display problem in system test output X-Git-Tag: v9.10.8rc1~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d63e38889bf18e73978653baa28de49c4ef93135;p=thirdparty%2Fbind9.git fix openbsd color-display problem in system test output (cherry picked from commit 1e31fdb76dff65b6406420a94e5b073f83a594cb) --- diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in index 97259931cfe..99efeb729a0 100644 --- a/bin/tests/system/conf.sh.in +++ b/bin/tests/system/conf.sh.in @@ -170,7 +170,7 @@ ZLIB=@ZLIB@ # # Set up color-coded test output # -if [ ${SYSTEMTEST_FORCE_COLOR:-0} -eq 1 ] || test -t 1 && type tput > /dev/null 2>&1 ; then +if [ ${SYSTEMTEST_FORCE_COLOR:-0} -eq 1 ] || test -t 1 && type tput > /dev/null 2>&1 && tput setaf 7 > /dev/null 2>&1 ; then COLOR_END=`tput setaf 4` # blue COLOR_FAIL=`tput setaf 1` # red COLOR_INFO=`tput bold` # bold