Skip to content

Commit d5fb1c6

Browse files
Fix #660
1 parent 743c189 commit d5fb1c6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libexec/bats-core/bats-exec-file

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ bats_run_test_with_retries() { # <args>
221221
status=$?
222222
if ((status == BATS_RETRY_RETURN_CODE)); then
223223
should_try_again=1
224+
status=0 # this is not the last try -> reset status
224225
else
225226
should_try_again=0
226227
bats_exec_file_status=$status

0 commit comments

Comments
 (0)