mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 04:42:16 +00:00
tests: Skip initrd/image launch if KATA_DEV_MODE
The script points kata-runtime at the generated initrd/image by editing the host config file, which we aren't doing when KATA_DEV_MODE=1 is set, so this won't work. Fixes: #415 Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
762ec28a6b
commit
0f4eac434b
@ -355,6 +355,10 @@ get_distros_config()
|
||||
|
||||
create_container()
|
||||
{
|
||||
# If KATA_DEV_MODE is set, we don't have any way to point kata-runtime
|
||||
# at the image/initrd to boot, so there's nothing to do
|
||||
[ -n "${KATA_DEV_MODE}" ] && return
|
||||
|
||||
out=$(mktemp)
|
||||
|
||||
local file="/proc/version"
|
||||
|
Loading…
Reference in New Issue
Block a user