From 7a8e816ded341418e2465300811946c0b713199c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 2 Mar 2020 13:59:08 -0500 Subject: [PATCH] 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 --- tests/test_images.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_images.sh b/tests/test_images.sh index dda485db54..4450f4e7dd 100755 --- a/tests/test_images.sh +++ b/tests/test_images.sh @@ -622,6 +622,7 @@ test_dracut() local initrd_path="${images_dir}/kata-containers-initrd-dracut.img" local image_path="${images_dir}/kata-containers-image-dracut.img" local rootfs_path="${tmp_rootfs}/dracut_rootfs" + local overlay_path="${tmp_rootfs}/dracut_overlay" detect_go_version || 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_IMAGE=${image_path} \ TARGET_ROOTFS=${rootfs_path} \ + DRACUT_OVERLAY_DIR="${overlay_path}" \ USE_DOCKER=1 \ DOCKER_RUNTIME="${DOCKER_RUNTIME}" \ )