Skip to content

Commit

Permalink
Ensure function exit code is captured by hooks/command
Browse files Browse the repository at this point in the history
Co-authored-by: Matías Bellone <[email protected]>
  • Loading branch information
petetomasik and toote authored Nov 7, 2024
1 parent 2111bb4 commit 02cc421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ setup() {

stub docker \
"pull image:tag" \
"pull image:tag"
"pull image:tag : exit 3"

run "$PWD"/hooks/command

assert_failure
assert_failure 3
assert_output --partial "Retrying 1 more times..."
assert_output --partial "!!! :docker: Pull failed."

Expand Down

0 comments on commit 02cc421

Please sign in to comment.