mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
fix network restart always test
The added test in 30544f225e
is flaking. Podman inspect is always
working so we have to check the pid instead.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
This commit is contained in:
parent
59dd357509
commit
fa6b6b873f
|
@ -88,8 +88,9 @@ load helpers
|
|||
# Wait for container to restart
|
||||
retries=20
|
||||
while :;do
|
||||
run_podman '?' container inspect --format "{{.State.Pid}}" myweb
|
||||
if [[ $status -eq 0 ]]; then
|
||||
run_podman container inspect --format "{{.State.Pid}}" myweb
|
||||
# pid is 0 as long as the container is not running
|
||||
if [[ $output -ne 0 ]]; then
|
||||
if [[ $output == $pid ]]; then
|
||||
die "This should never happen! Restarted container has same PID ($output) as killed one!"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue