aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-04-14 08:09:20 -0600
committerEd Santiago <santiago@redhat.com>2021-04-14 08:09:20 -0600
commit83930a03c5829edfb3a054d3ed169ff64284b953 (patch)
tree9a094e77096c9a492999e32e2ada7799cab19975
parent14ec3a64d9cd7f17de6858cbf476df8272e13fe8 (diff)
downloadpodman-83930a03c5829edfb3a054d3ed169ff64284b953.tar.gz
podman-83930a03c5829edfb3a054d3ed169ff64284b953.tar.bz2
podman-83930a03c5829edfb3a054d3ed169ff64284b953.zip
System tests: fix racy podman-inspect
Add 'podman wait' between kill & inspect. Fixes: #9751 Signed-off-by: Ed Santiago <santiago@redhat.com>
-rw-r--r--test/system/050-stop.bats1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/system/050-stop.bats b/test/system/050-stop.bats
index 0652a97e4..a9495e350 100644
--- a/test/system/050-stop.bats
+++ b/test/system/050-stop.bats
@@ -132,6 +132,7 @@ load helpers
is "$output" "stopping" "Status of container should be 'stopping'"
run_podman kill stopme
+ run_podman wait stopme
# Exit code should be 137 as it was killed
run_podman inspect --format '{{.State.ExitCode}}' stopme