From: Anders Björklund Date: Tue, 9 Jul 2024 17:45:00 +0000 (+0200) Subject: test: Use bash for running script command (#1482) X-Git-Tag: v4.11~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18c44ca1ea254e9cbceb71171c4e3a4524df6891;p=thirdparty%2Fccache.git test: Use bash for running script command (#1482) The script program will try to run the --command parameter with the login shell, rather than the currently running test shell (bash). --- diff --git a/test/suites/color_diagnostics.bash b/test/suites/color_diagnostics.bash index 53a9c2bb..77a45800 100644 --- a/test/suites/color_diagnostics.bash +++ b/test/suites/color_diagnostics.bash @@ -79,6 +79,8 @@ color_diagnostics_generate_permutations() { } color_diagnostics_run_on_pty() { + # command uses bash syntax, make sure that script uses the bash shell to run + SHELL=$BASH \ script --return --quiet --command "unset GCC_COLORS; CCACHE_DIR='$CCACHE_DIR' ${2:?}" /dev/null "${1:?}" # script returns early on some platforms (leaving a child process living for