aboutsummaryrefslogtreecommitdiff
path: root/test/system/200-pod.bats
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-08-04 16:24:34 -0400
committerValentin Rothberg <rothberg@redhat.com>2020-08-11 13:53:23 +0200
commit5b4952395bd7499f45f24a871009c235ba47ca0b (patch)
tree2c29426fda2a499c19e42dcd0011357a2369fe9a /test/system/200-pod.bats
parent43527de53e40b737333502f6fbb2e1d73a3f3ec9 (diff)
downloadpodman-5b4952395bd7499f45f24a871009c235ba47ca0b.tar.gz
podman-5b4952395bd7499f45f24a871009c235ba47ca0b.tar.bz2
podman-5b4952395bd7499f45f24a871009c235ba47ca0b.zip
Handle podman-remote run --rm
We need to remove the container after it has exited for podman-remote run --rm commands. If we don't remove this container at this step, we open ourselves up to race conditions. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/system/200-pod.bats')
-rw-r--r--test/system/200-pod.bats3
1 files changed, 0 insertions, 3 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index 6680a896d..93a7d7b5e 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -93,7 +93,6 @@ function teardown() {
is "$output" "$message" "message sent from one container to another"
# Clean up. First the nc -l container...
- if is_remote; then sleep 2;fi # FIXME: pending #7119
run_podman rm $cid1
# ...then, from pause container, find the image ID of the pause image...
@@ -104,7 +103,6 @@ function teardown() {
pause_iid="$output"
# ...then rm the pod, then rmi the pause image so we don't leave strays.
- if is_remote; then sleep 2;fi # FIXME: pending #7119
run_podman pod rm $podname
run_podman rmi $pause_iid
@@ -202,7 +200,6 @@ function random_ip() {
is "$output" ".*options $dns_opt" "--dns-opt was added"
# pod inspect
- if is_remote; then sleep 2;fi # FIXME: pending #7119
run_podman pod inspect --format '{{.Name}}: {{.ID}} : {{.NumContainers}} : {{.Labels}}' mypod
is "$output" "mypod: $pod_id : 1 : map\[${labelname}:${labelvalue}]" \
"pod inspect --format ..."