Skip to content

Commit

Permalink
test: chmod a+rwX the bootc-image-builder artifact
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
achilleas-k committed Jan 17, 2024
1 parent 9be3458 commit ada8505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/scripts/boot-image
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ada8505

Please sign in to comment.