aboutsummaryrefslogtreecommitdiffstats
path: root/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtests.sh b/runtests.sh
index ddff74f..ae77797 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -19,7 +19,7 @@ runtest () {
if [ "1" -eq "$?" ] ; then
echo "Test $n failed: $file" >&2
- echo "Diff:" >&2
+ echo "Diff: (expected vs actual)" >&2
echo "$diff"
exitcode=1
failed="$(expr "$failed" + 1)"
@@ -37,4 +37,5 @@ if [ "0" -eq "$failed" ]; then
exit 0
else
echo "$failed/$n tests failed" >&2
+ exit 1
fi