diff --git a/test/system/libs/helpers.bash b/test/system/libs/helpers.bash index 0d78fbeb4..668dff38f 100644 --- a/test/system/libs/helpers.bash +++ b/test/system/libs/helpers.bash @@ -431,18 +431,16 @@ function container_started() { local container_name container_name="$1" - run "$PODMAN" start "$container_name" + start_container "$container_name" # Used as a return value container_initialized=1 - for TRIES in 1 2 3 4 5 - do + for TRIES in 1 2 3 4 5; do run "$PODMAN" logs "$container_name" - container_output="$output" + # Look for last line of the container startup log - run grep 'Listening to file system and ticker events' <<< "$container_output" - if [[ "$status" -eq 0 ]]; then + if echo "$output" | grep "Listening to file system and ticker events"; then container_initialized=0 break fi