diff options
Diffstat (limited to 'sh/runtests.sh')
-rwxr-xr-x | sh/runtests.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sh/runtests.sh b/sh/runtests.sh index 7f7e7bdd..f083ff46 100755 --- a/sh/runtests.sh +++ b/sh/runtests.sh @@ -9,17 +9,17 @@ tret=0 ebegin "Testing yesno()" for f in yes YES Yes true TRUE True 1 ; do if ! yesno $f; then - tret=$(($tret + 1)) + : $(( tret += 1 )) echo "!$f!" fi done for f in no NO No false FALSE False 0 ; do if yesno $f; then - tret=$(($tret + 1)) + : $(( tret += 1 )) echo "!$f!" fi done eend $tret -ret=$(($ret + $tret)) +: $(( ret += $tret )) exit $ret |