Display all failing ui_out in tests instead of just the first one

This commit is contained in:
Maxime Coste 2020-04-27 13:35:02 +10:00
parent cb119251bc
commit 65620fb830

View File

@ -182,8 +182,10 @@ ui_out() {
;;
*)
read -r event <&4
if [ ! "$1" = "$event" ] && [ $failed -eq 0 ]; then
printf "${red}$indent%s${none}\n" "$name"
if [ ! "$1" = "$event" ]; then
if [ $failed -eq 0 ]; then
printf "${red}$indent%s${none}\n" "$name"
fi
printf "${indent} ${red}- %s\n${indent} ${green}+ %s${none}\n" "$1" "$event"
failed=1
fi