Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions test/system/libs/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down