From a27b480cef73f24eab7aa8c70b4bd7606f23c359 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Thu, 21 Sep 2023 21:57:07 +0200 Subject: [PATCH] test/system: Rename a variable A subsequent commit will use this variable to set the return value for a different condition. Therefore, the name needs to be changed to suit the purpose. https://github.com/containers/toolbox/pull/1372 --- test/system/libs/helpers.bash | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/system/libs/helpers.bash b/test/system/libs/helpers.bash index deb0707..6187f78 100644 --- a/test/system/libs/helpers.bash +++ b/test/system/libs/helpers.bash @@ -436,10 +436,9 @@ function container_started() { local container_name container_name="$1" - start_container "$container_name" + local -i ret_val=1 - # Used as a return value - local -i container_initialized=1 + start_container "$container_name" local -i j local num_of_retries=5 @@ -450,13 +449,13 @@ function container_started() { # Look for last line of the container startup log # shellcheck disable=SC2154 if echo "$output" | grep "Listening to file system and ticker events"; then - container_initialized=0 + ret_val=0 break fi sleep 1 done - return "$container_initialized" + return "$ret_val" }