test/system: Specify explit return values
This removes any ambiguities and makes it clear what value is being returned. https://github.com/containers/toolbox/pull/1378
This commit is contained in:
parent
0d43d22b5b
commit
574dbc920c
1 changed files with 3 additions and 1 deletions
|
@ -335,7 +335,7 @@ function pull_distro_image() {
|
||||||
|
|
||||||
# No need to copy if the image is already available in Podman
|
# No need to copy if the image is already available in Podman
|
||||||
if "$PODMAN" image exists "${image}"; then
|
if "$PODMAN" image exists "${image}"; then
|
||||||
return
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://github.com/containers/skopeo/issues/547 for the options for containers-storage
|
# https://github.com/containers/skopeo/issues/547 for the options for containers-storage
|
||||||
|
@ -344,6 +344,8 @@ function pull_distro_image() {
|
||||||
echo "Failed to load image ${image} from cache ${IMAGE_CACHE_DIR}/${image_archive}"
|
echo "Failed to load image ${image} from cache ${IMAGE_CACHE_DIR}/${image_archive}"
|
||||||
assert_success
|
assert_success
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue