]> 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 20:01:50 +0000 (13:01 -0700)
(cherry picked from commit 1e31fdb76dff65b6406420a94e5b073f83a594cb)

bin/tests/system/conf.sh.in

index 97259931cfe24f2b129902f353fcb67ae9c90e7f..99efeb729a08fdeeb6c130408c6a92ff75d8428f 100644 (file)
@@ -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