Merge pull request #10318 from Luap99/fix-network-test

fix network restart always test
This commit is contained in:
OpenShift Merge Robot 2021-05-12 07:46:46 -04:00 committed by GitHub
commit d8dc56ba67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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