From 18c44ca1ea254e9cbceb71171c4e3a4524df6891 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Anders=20Bj=C3=B6rklund?= Date: Tue, 9 Jul 2024 19:45:00 +0200 Subject: [PATCH] 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). --- test/suites/color_diagnostics.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/suites/color_diagnostics.bash b/test/suites/color_diagnostics.bash index 53a9c2bb5..77a45800c 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 -- 2.47.2