Skip to content

Commit 82eaf7d

Browse files
committed
Fix keep-failed-containers flag handling in integration script
The --keep-failed-containers flag was being passed as --keep-failed-containers=true/false which doesn't work with Go's BoolVar flag parser. Boolean flags in Go expect just --keep-failed-containers (for true) or nothing (for false). Modified the script to only pass the flag when keep_failed is true, matching Go's boolean flag expectations.
1 parent effcffa commit 82eaf7d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/integration.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,18 @@ function specs::run() {
125125
platform_flag="--platform=${platform}"
126126
stack_flag="--stack=${stack}"
127127
token_flag="--github-token=${token}"
128-
keep_failed_flag="--keep-failed-containers=${keep_failed}"
128+
keep_failed_flag=""
129129
nodes=1
130130

131131
if [[ "${parallel}" == "true" ]]; then
132132
nodes=3
133133
serial_flag=""
134134
fi
135135

136+
if [[ "${keep_failed}" == "true" ]]; then
137+
keep_failed_flag="--keep-failed-containers"
138+
fi
139+
136140
local buildpack_file version
137141
version="$(cat "${ROOTDIR}/VERSION")"
138142
buildpack_file="$(buildpack::package "${version}" "${cached}" "${stack}")"

0 commit comments

Comments
 (0)