mirror of https://github.com/containers/podman.git
systests: kube with policies test: fix race
Add a wait_for_ready() to one kube-play test, to make sure container output has made it to the journal. Probably does not fix #18501, but I think it might fix its most common presentation. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
83f89db6c8
commit
0e09527bd2
|
@ -325,7 +325,7 @@ spec:
|
||||||
- command:
|
- command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
- 'printenv NOTIFY_SOCKET; while ! test -f /stop;do sleep 0.1;done'
|
- 'printenv NOTIFY_SOCKET; echo READY; while ! test -f /stop;do sleep 0.1;done'
|
||||||
image: $SYSTEMD_IMAGE
|
image: $SYSTEMD_IMAGE
|
||||||
name: a
|
name: a
|
||||||
- command:
|
- command:
|
||||||
|
@ -367,6 +367,7 @@ EOF
|
||||||
die "container $container_a and/or $container_b did not start"
|
die "container $container_a and/or $container_b did not start"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
wait_for_ready $container_a
|
||||||
# Make sure the containers have the correct policy
|
# Make sure the containers have the correct policy
|
||||||
run_podman container inspect $container_a $container_b $service_container --format "{{.Config.SdNotifyMode}}"
|
run_podman container inspect $container_a $container_b $service_container --format "{{.Config.SdNotifyMode}}"
|
||||||
is "$output" "container
|
is "$output" "container
|
||||||
|
|
Loading…
Reference in New Issue