From 3b84315c64a0c0cedba18395e3454e1c3bf12d3c Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 17 Jan 2024 17:24:22 +0100 Subject: [PATCH] test: chmod a+rwX the bootc-image-builder artifact Make the build directory and all its contents world rwXable. This isn't needed for the test itself, the artifact is already readable, but the original permissions make the cleanup of the testing environment fail. --- test/scripts/boot-image | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/scripts/boot-image b/test/scripts/boot-image index 27b79d47d1..ebaca52f7c 100755 --- a/test/scripts/boot-image +++ b/test/scripts/boot-image @@ -137,6 +137,9 @@ def boot_container(distro, arch, image_type, image_path, manifest_id): # boot it image_name = f"image-boot-test-{distro}-{arch}-{image_type}-" + str(uuid.uuid4()) + + # Build artifacts are owned by root. Make them world accessible. + testlib.runcmd(["sudo", "chmod", "a+rwX", "-R", tmpdir]) raw_image_path = f"{tmpdir}/image/disk.raw" cmd_boot_aws(arch, image_name, privkey_file, pubkey_file, raw_image_path)