From: Joel Rosdahl Date: Sun, 5 Jul 2020 18:35:05 +0000 (+0200) Subject: Use a known and set TERM variable to stabilize color_diagnostics tests X-Git-Tag: v4.0~354 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1acedaefb131a0786cb1d00cd5861604d0de491;p=thirdparty%2Fccache.git Use a known and set TERM variable to stabilize color_diagnostics tests On some distributions TERM is unset when run via Docker which failed color_diagnostics tests since ccache doesn’t enable color output if TERM is unset. Fix this by using a known TERM value. Fixes #616. --- diff --git a/test/run b/test/run index e3bce0131..672299d7e 100755 --- a/test/run +++ b/test/run @@ -307,6 +307,7 @@ TEST() { $(env | sed -n 's/^\(CCACHE_[A-Z0-9_]*\)=.*$/\1/p') EOF unset GCC_COLORS + unset TERM export CCACHE_CONFIGPATH=$ABS_TESTDIR/ccache.conf export CCACHE_DETECT_SHEBANG=1 diff --git a/test/suites/color_diagnostics.bash b/test/suites/color_diagnostics.bash index 60254a186..b2b009962 100644 --- a/test/suites/color_diagnostics.bash +++ b/test/suites/color_diagnostics.bash @@ -30,6 +30,7 @@ SUITE_color_diagnostics_SETUP() { fi unset GCC_COLORS + export TERM=vt100 } color_diagnostics_expect_color() {