summaryrefslogtreecommitdiff
path: root/runtests.sh
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-09-07 07:49:34 +0000
committerMartin Pool <mbp@samba.org>2001-09-07 07:49:34 +0000
commit32c58f06e01b1826cf6c74f0d3f29802ae8a28a9 (patch)
tree004d5ca92a35029b51e41b064fdfc942ee5c92fb /runtests.sh
parent040f7b659595c500a5faf06032be066bbe195ea6 (diff)
downloadrsync-32c58f06e01b1826cf6c74f0d3f29802ae8a28a9.tar.gz
rsync-32c58f06e01b1826cf6c74f0d3f29802ae8a28a9.tar.bz2
rsync-32c58f06e01b1826cf6c74f0d3f29802ae8a28a9.zip
Try to exit 0 if nothing fails.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtests.sh b/runtests.sh
index ff67838f..1e11f6b0 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -203,6 +203,12 @@ echo " $passed passed"
[ "$missing" -gt 0 ] && echo " $missing missing"
echo '------------------------------------------------------------'
-result=`expr $failed + $missing`
-echo "(overall result is $result)"
+# OK, so expr exits with 0 if the result is neither null nor zero; and
+# 1 if the expression is null or zero. This is the opposite of what
+# we want, and if we just call expr then this script will always fail,
+# because -e is set.
+
+set -x
+result=`expr $failed + $missing || true`
+echo "overall result is $result"
exit $result