Skip to content

Commit 02cc421

Browse files
petetomasiktoote
andauthored
Ensure function exit code is captured by hooks/command
Co-authored-by: Matías Bellone <[email protected]>
1 parent 2111bb4 commit 02cc421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/command.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ setup() {
9191

9292
stub docker \
9393
"pull image:tag" \
94-
"pull image:tag"
94+
"pull image:tag : exit 3"
9595

9696
run "$PWD"/hooks/command
9797

98-
assert_failure
98+
assert_failure 3
9999
assert_output --partial "Retrying 1 more times..."
100100
assert_output --partial "!!! :docker: Pull failed."
101101

0 commit comments

Comments
 (0)