Fix test runner to consider Kakoune returning non 0 as a failure
This commit is contained in:
parent
67849f2db7
commit
24d4ee870f
5
test/run
5
test/run
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user