test/system: Skip caching of an image if it is already cached
https://github.com/containers/toolbox/pull/1024
This commit is contained in:
parent
754c6fb4d1
commit
fc71b9de34
|
|
@ -89,6 +89,10 @@ function _pull_and_cache_distro_image() {
|
||||||
image_archive="${image_archive}-${version}"
|
image_archive="${image_archive}-${version}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -d ${IMAGE_CACHE_DIR}/${image_archive} ]] ; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
for ((i = ${num_of_retries}; i > 0; i--)); do
|
for ((i = ${num_of_retries}; i > 0; i--)); do
|
||||||
run $PODMAN pull ${image}
|
run $PODMAN pull ${image}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue