mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-24 14:55:46 -04:00
Try to exit 0 if nothing fails.
This commit is contained in:
10
runtests.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user