1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-11-17 11:42:33 +01:00

Safely increment in a way that it works on Linux

Otherwise the CI is broken but still exits with 0 status:
https://travis-ci.org/sstephenson/bats/builds/13173769
This commit is contained in:
Mislav Marohnić 2013-10-29 02:23:38 +01:00
parent 9f96c1f415
commit edbabe54bc

View File

@ -97,7 +97,7 @@ bats_capture_stack_trace() {
if [[ "$frame" = *"$test_pattern" ]]; then
break
else
((index++))
index=$((index+1))
fi
done
fi