Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions test/system/libs/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,20 @@ function pull_distro_image() {
fi

# No need to copy if the image is already available in Podman
run "$PODMAN" image exists "${image}"
if [[ "$status" -eq 0 ]]; then
return
if "$PODMAN" image exists "${image}"; then
return 0
fi

# https://github.com/containers/skopeo/issues/547 for the options for containers-storage
run "$SKOPEO" copy "dir:${IMAGE_CACHE_DIR}/${image_archive}" "containers-storage:[overlay@$ROOTLESS_PODMAN_STORE_DIR+$ROOTLESS_PODMAN_STORE_DIR]${image}"

# shellcheck disable=SC2154
if [ "$status" -ne 0 ]; then
echo "Failed to load image ${image} from cache ${IMAGE_CACHE_DIR}/${image_archive}"
assert_success
fi

return 0
}


Expand Down