CI: pass $BUILDAH_RUNTIME through to in-container test runs
Pass BUILDAH_RUNTIME through to tests that we run inside of containers, and discard the CI_DESIRED_RUNTIME variable, which sort of did the same thing. We still set OCI to the name of the runtime because tests consult it directly. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
b97fd7d686
commit
a9a9a43962
|
@ -81,7 +81,7 @@ export CI_USE_REGISTRY_CACHE=true
|
|||
# N/B: Don't include BUILDAH_ISOLATION, STORAGE_DRIVER, or CGROUP_MANAGER
|
||||
# here because they will negatively affect execution of the rootless
|
||||
# integration tests.
|
||||
PASSTHROUGH_ENV_EXACT='DEST_BRANCH|DISTRO_NV|GOPATH|GOSRC|ROOTLESS_USER|SCRIPT_BASE|IN_PODMAN_IMAGE'
|
||||
PASSTHROUGH_ENV_EXACT='BUILDAH_RUNTIME|DEST_BRANCH|DISTRO_NV|GOPATH|GOSRC|ROOTLESS_USER|SCRIPT_BASE|IN_PODMAN_IMAGE'
|
||||
|
||||
# List of envariable patterns which must match AT THE BEGINNING of the name.
|
||||
PASSTHROUGH_ENV_ATSTART='CI|TEST'
|
||||
|
|
|
@ -11,7 +11,7 @@ INET_BINARY=${INET_BINARY:-$TEST_SOURCES/../bin/inet}
|
|||
DUMPSPEC_BINARY=${DUMPSPEC_BINARY:-$TEST_SOURCES/../bin/dumpspec}
|
||||
STORAGE_DRIVER=${STORAGE_DRIVER:-vfs}
|
||||
PATH=$(dirname ${BASH_SOURCE})/../bin:${PATH}
|
||||
OCI=${CI_DESIRED_RUNTIME:-$(${BUILDAH_BINARY} info --format '{{.host.OCIRuntime}}' || command -v runc || command -v crun)}
|
||||
OCI=${BUILDAH_RUNTIME:-$(${BUILDAH_BINARY} info --format '{{.host.OCIRuntime}}' || command -v runc || command -v crun)}
|
||||
# Default timeout for a buildah command.
|
||||
BUILDAH_TIMEOUT=${BUILDAH_TIMEOUT:-300}
|
||||
|
||||
|
|
Loading…
Reference in New Issue