commit 8c5ea49271ece0c30cc944133f2788f200b188fb
parent 60276acd46f1edfda77ea21bee82ee4344658474
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 31 Oct 2023 11:12:52 +0100
Upd of the escape sequence for "make test" messages
Some shells (e.g. dash) don't support the '\e' character in printf: the
escape sequence is simply ignored. So we've replaced '\e' with '\033' in
the printf used to display colored messages in "make test". This should
work as expected in all shells.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/make.sh b/make.sh
@@ -35,14 +35,13 @@ run_test()
printf "%s " "${test}"
if "./${test}" > /dev/null 2>&1; then
- printf "\e[1;32mOK\e[m\n"
+ printf "\033[1;32mOK\033[m\n"
else
- printf "\e[1;31mError\e[m\n"
+ printf "\033[1;31mError\033[m\n"
fi
done 2> /dev/null
}
-
clean_test()
{
for i in "$@"; do