-
Notifications
You must be signed in to change notification settings - Fork 443
Closed
Labels
Component: Bash CodeEverything regarding the bash codeEverything regarding the bash codePriority: CriticalBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorSize: SmallChanges to a few localized lines of code (e.g. same function)Changes to a few localized lines of code (e.g. same function)Type: Bug
Description
To Reproduce
echo '
@test "fail once" {
BATS_TEST_RETRIES=2
((BATS_TEST_TRY_NUMBER > 1)) || false
}
' > tst.bats
bats tst.bats
[ "$?" -eq 0 ] && echo 'reported success' || echo 'reported failure'
Expected behavior
reported success
should be printed, as per the test output
Environment (please complete the following information):
- Bats Version: 1.8
- OS: MacOS
- Bash version: [e.g. 5.1] 3.2
Metadata
Metadata
Assignees
Labels
Component: Bash CodeEverything regarding the bash codeEverything regarding the bash codePriority: CriticalBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorBroken behavior in nearly all environments, e.g. wrong test results, internal bats errorSize: SmallChanges to a few localized lines of code (e.g. same function)Changes to a few localized lines of code (e.g. same function)Type: Bug