Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
040f7b6
)
Try to exit 0 if nothing fails.
author
Martin Pool
<mbp@samba.org>
Fri, 7 Sep 2001 07:49:34 +0000
(07:49 +0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 7 Sep 2001 07:49:34 +0000
(07:49 +0000)
runtests.sh
patch
|
blob
|
blame
|
history
diff --git
a/runtests.sh
b/runtests.sh
index
ff67838
..
1e11f6b
100755
(executable)
--- a/
runtests.sh
+++ b/
runtests.sh
@@
-203,6
+203,12
@@
echo " $passed passed"
[ "$missing" -gt 0 ] && echo " $missing missing"
echo '------------------------------------------------------------'
[ "$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
exit $result