From dc886d777a338491f74d9174ee4968118f30c8b4 Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Mon, 17 Aug 2026 05:51:01 +0200 Subject: [PATCH] ci: fake all podman calls Actually executing podman fails for likely reasons related to [1]; trying to work around it is very annoying. Mock things instead so we don't execute actual podman when not necessary. [1]: https://github.com/actions/runner-images/issues/14473 Signed-off-by: Simon de Vlieger --- pkg/bootc/resolver_test.go | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkg/bootc/resolver_test.go b/pkg/bootc/resolver_test.go index 796afa3e0d..12f047f074 100644 --- a/pkg/bootc/resolver_test.go +++ b/pkg/bootc/resolver_test.go @@ -184,11 +184,24 @@ func TestNewFakedUnhappy(t *testing.T) { } fakePodman := `#!/bin/sh -if [ "$1" = "mount" ]; then - >&2 echo "forced-crash" - exit 2 -fi -exec /usr/bin/podman "$@" +case "$1" in + run) + echo "fake-container-id" + ;; + inspect) + echo "amd64" + ;; + mount) + >&2 echo "forced-crash" + exit 2 + ;; + stop|rm) + exit 0 + ;; + *) + exec /usr/bin/podman "$@" + ;; +esac ` makeFakePodman(t, fakePodman) _, err := bootc.NewContainer(testingImage)