test/system: Silence SC2034

Otherwise https://www.shellcheck.net/ would complain:
  Line 442:
  for TRIES in 1 2 3 4 5; do
  ^-^ SC2034 (warning): TRIES appears unused. Verify use (or export if
      used externally).

See: https://www.shellcheck.net/wiki/SC2034

This also makes the code consistent with the rest.

https://github.com/containers/toolbox/pull/1371
This commit is contained in:
Debarshi Ray 2023-09-14 16:54:53 +02:00
parent d528301b7f
commit 5c0372e959

View file

@ -439,7 +439,9 @@ function container_started() {
# Used as a return value # Used as a return value
container_initialized=1 container_initialized=1
for TRIES in 1 2 3 4 5; do local num_of_retries=5
for ((i = 0; i < num_of_retries; i++)); do
run "$PODMAN" logs "$container_name" run "$PODMAN" logs "$container_name"
# Look for last line of the container startup log # Look for last line of the container startup log