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
This commit is contained in:
Debarshi Ray 2023-09-21 21:57:07 +02:00
parent d3161ea60e
commit a27b480cef

View file

@ -436,10 +436,9 @@ function container_started() {
local container_name local container_name
container_name="$1" container_name="$1"
start_container "$container_name" local -i ret_val=1
# Used as a return value start_container "$container_name"
local -i container_initialized=1
local -i j local -i j
local num_of_retries=5 local num_of_retries=5
@ -450,13 +449,13 @@ function container_started() {
# Look for last line of the container startup log # Look for last line of the container startup log
# shellcheck disable=SC2154 # shellcheck disable=SC2154
if echo "$output" | grep "Listening to file system and ticker events"; then if echo "$output" | grep "Listening to file system and ticker events"; then
container_initialized=0 ret_val=0
break break
fi fi
sleep 1 sleep 1
done done
return "$container_initialized" return "$ret_val"
} }