vendor/bats/libexec/bats-exec-suite in busser-bats-0.2.0 vs vendor/bats/libexec/bats-exec-suite in busser-bats-0.3.0

- old
+ new

@@ -15,11 +15,11 @@ trap "kill 0; exit 1" int count=0 for filename in "$@"; do - count=$(($count + $(bats-exec-test -c "$filename"))) + let count+="$(bats-exec-test -c "$filename")" done if [ -n "$count_only_flag" ]; then echo "$count" exit @@ -33,14 +33,14 @@ { IFS= read -r # 1..n while IFS= read -r line; do case "$line" in "begin "* ) - index=$(($index + 1)) + let index+=1 echo "${line/ $index / $(($offset + $index)) }" ;; "ok "* | "not ok "* ) - [ -n "$extended_syntax_flag" ] || index=$(($index + 1)) + [ -n "$extended_syntax_flag" ] || let index+=1 echo "${line/ $index / $(($offset + $index)) }" [ "${line:0:6}" != "not ok" ] || status=1 ;; * ) echo "$line"