From 574dbc920c194225c4ba676faf947710f9c35d79 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Mon, 25 Sep 2023 15:56:49 +0200 Subject: [PATCH] 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 --- test/system/libs/helpers.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/system/libs/helpers.bash b/test/system/libs/helpers.bash index f323079..833303a 100644 --- a/test/system/libs/helpers.bash +++ b/test/system/libs/helpers.bash @@ -335,7 +335,7 @@ function pull_distro_image() { # No need to copy if the image is already available in Podman if "$PODMAN" image exists "${image}"; then - return + return 0 fi # 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}" assert_success fi + + return 0 }