From 0e6a12ce3cf6a15170b4bfaacd969df713f23658 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 1 Mar 2020 17:12:36 -0500 Subject: [PATCH] tests: Pass DOCKER_RUNTIME to osbuilder scripts The rootfs and image builder scripts are wired up to handle the DOCKER_RUNTIME, so pass our value down to those scripts Signed-off-by: Cole Robinson --- tests/test_images.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/test_images.sh b/tests/test_images.sh index 6eafd71066..ac24313418 100755 --- a/tests/test_images.sh +++ b/tests/test_images.sh @@ -494,6 +494,7 @@ test_distros() get_distros_config "$distro" local commonMakeVars=( \ USE_DOCKER=true \ + DOCKER_RUNTIME="${DOCKER_RUNTIME}" \ ROOTFS_BUILD_DEST="$tmp_rootfs" \ IMAGES_BUILD_DEST="$images_dir" \ DEBUG=1 ) @@ -642,11 +643,19 @@ test_dracut() -v /etc/localtime:/etc/localtime:ro \ dracut-test-osbuilder \ ) - typeset -a makeVars=(BUILD_METHOD=dracut TARGET_INITRD="${initrd_path}" TARGET_IMAGE=${image_path} TARGET_ROOTFS=${rootfs_path}) + + typeset -a makeVars=(\ + BUILD_METHOD=dracut \ + TARGET_INITRD="${initrd_path}" \ + TARGET_IMAGE=${image_path} \ + TARGET_ROOTFS=${rootfs_path} \ + USE_DOCKER=1 \ + DOCKER_RUNTIME="${DOCKER_RUNTIME}" \ + ) info "Making image for dracut inside a container" silent_run docker run ${dockerRunArgs[@]} make -C ${tmp_dir} ${makeVars[@]} rootfs - make_image USE_DOCKER=1 ${makeVars[@]} + make_image ${makeVars[@]} local image_size=$(stat -c "%s" "${image_path}") local rootfs_size=$(get_rootfs_size "$rootfs_path") built_images["dracut"]="${rootfs_size}:${image_size}"