mirror of
https://github.com/containers/podman.git
synced 2025-10-12 16:56:32 +08:00

We cannot use local var outside of a function. We have to use a global one. Log: https://storage.googleapis.com/cirrus-ci-6707778565701632-fcae48/artifacts/containers/podman/5970023511490560/html/compose_v2-podman-fedora-35-root-host.log.html Signed-off-by: Paul Holzinger <pholzing@redhat.com>
20 lines
550 B
Bash
20 lines
550 B
Bash
# -*- bash -*-
|
|
|
|
expected="teststring"
|
|
|
|
# Reading from the nc socket is flaky because docker-compose only starts
|
|
# the containers. We cannot know at this point if the container did already
|
|
# send the message. Give the container 5 seconds time to send the message
|
|
# to prevent flakes.
|
|
container_timeout=5
|
|
while [ $container_timeout -gt 0 ]; do
|
|
output="$(< $OUTFILE)"
|
|
if [ -n "$output" ]; then
|
|
break
|
|
fi
|
|
sleep 1
|
|
container_timeout=$(($container_timeout - 1))
|
|
done
|
|
|
|
is "$output" "$expected" "$testname : nc received teststring"
|