summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2020-04-27 13:35:02 +1000
committerMaxime Coste <mawww@kakoune.org>2020-04-27 17:39:21 +1000
commit65620fb8306f65247c8a2fb9732aa68dfe707308 (patch)
tree54f02020d43f559857035aace00effbbe52621a9
parentcb119251bcd6771e30c7f504e260c514572473c0 (diff)
Display all failing ui_out in tests instead of just the first one
-rwxr-xr-xtest/run6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/run b/test/run
index c7136100..209376a7 100755
--- a/test/run
+++ b/test/run
@@ -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