]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix openbsd color-display problem in system test output
authorEvan Hunt <each@isc.org>
Fri, 25 May 2018 19:47:02 +0000 (12:47 -0700)
committerEvan Hunt <each@isc.org>
Fri, 25 May 2018 19:47:40 +0000 (12:47 -0700)
bin/tests/system/conf.sh.in

index bf7e77e2efa72af8a2dd9e74f2ef52d6346f190c..2d6c9632b695f1f8eac59ca5174263cd932c05b8 100644 (file)
@@ -163,7 +163,7 @@ NZD=@NZD_TOOLS@
 #
 # 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