Skip to content

Commit 89c4c40

Browse files
committed
Skip Docker tests for Windows stacks in integration suite
Windows containers cannot run on Linux Docker hosts used in CI. This change makes the integration script exit gracefully when Docker platform is requested with a Windows stack, similar to how the HWC buildpack handles this scenario.
1 parent 08625d9 commit 89c4c40

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/integration.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ function main() {
7272
if [[ "$(jq -r -S .integration.harness "${ROOTDIR}/config.json")" != "switchblade" ]]; then
7373
util::print::warn "NOTICE: This integration suite does not support Docker."
7474
fi
75+
if [[ "${stack}" =~ ^windows ]]; then
76+
util::print::warn "NOTICE: This integration suite does not support Docker on Windows stacks."
77+
util::print::info "Windows containers cannot run on Linux Docker hosts. Use CF platform for Windows testing."
78+
exit 0
79+
fi
7580
fi
7681

7782
declare -a matrix

0 commit comments

Comments
 (0)