Skip to content

Fix bats-assert's tests - #522

Merged
martin-schulze-vireso merged 2 commits into
bats-core:masterfrom
martin-schulze-vireso:fix/broken-tests-on-bats-assert
Dec 10, 2021
Merged

martin-schulze-vireso merged 2 commits into
bats-core:masterfrom
martin-schulze-vireso:fix/broken-tests-on-bats-assert

Conversation

@martin-schulze-vireso

Copy link
Copy Markdown
Member

which rely on check run's status within another run,
thus overriding status before executing the command is problematic.

which rely on check run's status within another run,
thus overriding status before executing the command is problematic.
@martin-schulze-vireso
martin-schulze-vireso requested a review from a team as a code owner December 9, 2021 23:51
@martin-schulze-vireso martin-schulze-vireso added the no changelog Marks PRs that don't need a changelog entry. label Dec 9, 2021
`[ "${lines[9]}" == "#   \`run -2 exit 3' failed, expected exit code 2, got 3" ]' failed
which actually gets
`run -2 exit 3' failed with status 3, expected exit code 2, got 3

For some reason the exit code 3 gets injected into the bats return
code handling if we use `;status=$?` instead of `|| status=$?`.
@martin-schulze-vireso
martin-schulze-vireso merged commit 54820e7 into bats-core:master Dec 10, 2021
martin-schulze-vireso added a commit to martin-schulze-vireso/bats-core that referenced this pull request Dec 10, 2021
@martin-schulze-vireso
martin-schulze-vireso deleted the fix/broken-tests-on-bats-assert branch May 23, 2022 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog Marks PRs that don't need a changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant