add colors to testsuite

This commit is contained in:
Tobias Powalowski 2024-06-10 16:46:11 +02:00
parent 83c33b37dd
commit c5d0a5341f

View file

@ -16,10 +16,10 @@ _run_test () {
} }
_result() { _result() {
if [[ -s ${1} ]]; then if [[ -s ${1} ]]; then
echo -e "\e[1m=> Test result: \e[1;91mFAILED\e[m" echo -e "e[1;94m=> \e[1;91mFAILED\e[m"
cat ${1} cat ${1}
else else
echo -e "\e[1m=> Test result: \e[1;92mOK\e[m" echo -e "e[1;94m=> \e[1;92mOK\e[m"
fi fi
} }