Skip to content

Commit 5c4f4b6

Browse files
authored
podman check (knative#3242)
1 parent 55da3db commit 5c4f4b6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

hack/test-full.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,14 @@ preconditions() {
145145
fi
146146
fi
147147

148-
# TODO: if Podman tests are enabled, check that podman is installed and running
149-
# https://github.com/knative/func/issues/3209
150-
148+
# Check if Podman is installed and available (if Podman E2E tests are enabled)
149+
if [ "${FUNC_E2E_PODMAN}" = "true" ]; then
150+
if ! command -v podman >/dev/null 2>&1; then
151+
echo "ERROR: Podman is required for Podman E2E tests but not found!"
152+
echo "Please install Podman and ensure it is in your PATH."
153+
exit 1
154+
fi
155+
fi
151156
echo ""
152157
echo "${green}✓ Preconditions checks passed${reset}"
153158
}

0 commit comments

Comments
 (0)