mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00:00
tests: Drop kata-runtime env validation if KATA_DEV_MODE is set
If KATA_DEV_MODE is set, test_images.sh attempts to validate that docker has kata-runtime as a configured --runtime value. This gives a nicer and earlier error, but it also complicates using /usr/bin/docker as provided by podman, which has a different 'info' topology. Let's drop the check and let the tests fail naturally if the host isn't configured properly Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
6f17b9cb48
commit
762ec28a6b
@ -293,12 +293,6 @@ setup()
|
|||||||
sudo cp -a /usr/share/defaults/kata-containers/configuration.toml /etc/kata-containers/configuration.toml
|
sudo cp -a /usr/share/defaults/kata-containers/configuration.toml /etc/kata-containers/configuration.toml
|
||||||
else
|
else
|
||||||
info "Running with KATA_DEV_MODE set, skipping installation of docker and kata packages"
|
info "Running with KATA_DEV_MODE set, skipping installation of docker and kata packages"
|
||||||
# Make sure docker & kata are available
|
|
||||||
command -v docker >/dev/null || die "docker cannot be found on your PATH"
|
|
||||||
local cfgRuntime=
|
|
||||||
cfgRuntime="$(docker info --format "{{(index .Runtimes \"${RUNTIME}\").Path}}")"
|
|
||||||
[ -n "$cfgRuntime" ] || die "${RUNTIME} is not a configured runtime for docker"
|
|
||||||
[ -x "$cfgRuntime" ] || die "docker ${RUNTIME} is linked to an invalid executable: $cfgRuntime"
|
|
||||||
fi
|
fi
|
||||||
run_mgr enable-debug
|
run_mgr enable-debug
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user