Fix test runner to consider Kakoune returning non 0 as a failure

This commit is contained in:
Maxime Coste 2016-03-03 13:49:57 +00:00
parent 67849f2db7
commit 24d4ee870f

View File

@ -54,7 +54,9 @@ main() {
if [ $should_fail = 0 ]; then if [ $should_fail = 0 ]; then
if [ $retval -ne 0 ]; then if [ $retval -ne 0 ]; then
echo "Kakoune returned error $retval" echo "Kakoune returned error $retval"
fi number_failures=$(($number_failures + 1))
echo "$indent$name" | colorize red normal
else
for expect in $test_files; do for expect in $test_files; do
if cmp -s $test/$dir/$expect $expect; then if cmp -s $test/$dir/$expect $expect; then
echo "$indent$name" | colorize green normal echo "$indent$name" | colorize green normal
@ -78,6 +80,7 @@ main() {
echo echo
fi fi
done done
fi
else else
color=green color=green
if [ ! -e stderr ]; then if [ ! -e stderr ]; then