mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 07:48:55 +00:00
tests: Specify DRACUT_OVERLAY_DIR
Otherwise it defaults to using the $project_dir/dracut_overlay, which leaves junk hanging around when running the tests locally Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
7dd99c022b
commit
7a8e816ded
@ -622,6 +622,7 @@ test_dracut()
|
|||||||
local initrd_path="${images_dir}/kata-containers-initrd-dracut.img"
|
local initrd_path="${images_dir}/kata-containers-initrd-dracut.img"
|
||||||
local image_path="${images_dir}/kata-containers-image-dracut.img"
|
local image_path="${images_dir}/kata-containers-image-dracut.img"
|
||||||
local rootfs_path="${tmp_rootfs}/dracut_rootfs"
|
local rootfs_path="${tmp_rootfs}/dracut_rootfs"
|
||||||
|
local overlay_path="${tmp_rootfs}/dracut_overlay"
|
||||||
|
|
||||||
detect_go_version ||
|
detect_go_version ||
|
||||||
die "Could not detect the required Go version for AGENT_VERSION='${AGENT_VERSION:-master}'."
|
die "Could not detect the required Go version for AGENT_VERSION='${AGENT_VERSION:-master}'."
|
||||||
@ -651,6 +652,7 @@ test_dracut()
|
|||||||
TARGET_INITRD="${initrd_path}" \
|
TARGET_INITRD="${initrd_path}" \
|
||||||
TARGET_IMAGE=${image_path} \
|
TARGET_IMAGE=${image_path} \
|
||||||
TARGET_ROOTFS=${rootfs_path} \
|
TARGET_ROOTFS=${rootfs_path} \
|
||||||
|
DRACUT_OVERLAY_DIR="${overlay_path}" \
|
||||||
USE_DOCKER=1 \
|
USE_DOCKER=1 \
|
||||||
DOCKER_RUNTIME="${DOCKER_RUNTIME}" \
|
DOCKER_RUNTIME="${DOCKER_RUNTIME}" \
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user