summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-12 07:46:46 -0400
committerGitHub <noreply@github.com>2021-05-12 07:46:46 -0400
commitd8dc56ba6758e590d14fca0c733246454837faf9 (patch)
treedef149768246dba97e3cb1b6c40b6ca95214eb62
parente1d6e6553680f5fafa4418c5958f225932c5ac57 (diff)
parentfa6b6b873f2bb8ca76c6711188eac669d14bf3c2 (diff)
downloadpodman-d8dc56ba6758e590d14fca0c733246454837faf9.tar.gz
podman-d8dc56ba6758e590d14fca0c733246454837faf9.tar.bz2
podman-d8dc56ba6758e590d14fca0c733246454837faf9.zip
Merge pull request #10318 from Luap99/fix-network-test
fix network restart always test
-rw-r--r--test/system/500-networking.bats5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats
index 94980346e..34220829a 100644
--- a/test/system/500-networking.bats
+++ b/test/system/500-networking.bats
@@ -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