summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-28 11:41:47 +0000
committerGitHub <noreply@github.com>2022-06-28 11:41:47 +0000
commitc66a489b75b7bc68c341f0ff39d7beef95569878 (patch)
tree2f08288e17a132d017ad3f1d5bb7e29b53714dbd /test/system
parenta5750989752d03717676adc3e5ad52547afab421 (diff)
parent0e03a64f9956b237812ea11ecab83e1b05f025a0 (diff)
downloadpodman-c66a489b75b7bc68c341f0ff39d7beef95569878.tar.gz
podman-c66a489b75b7bc68c341f0ff39d7beef95569878.tar.bz2
podman-c66a489b75b7bc68c341f0ff39d7beef95569878.zip
Merge pull request #14741 from giuseppe/pod-ps-no-race
pod: ps does not race with rm
Diffstat (limited to 'test/system')
-rw-r--r--test/system/200-pod.bats15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index f597c0e0a..92d3966be 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -495,7 +495,22 @@ spec:
local actual2=$(< /sys/fs/cgroup/$path2/cpu.max)
is "$actual2" "500000 100000" "resource limits set properly"
run_podman --cgroup-manager=cgroupfs pod rm $name2
+}
+
+@test "podman pod ps doesn't race with pod rm" {
+ # create a few pods
+ for i in {0..10}; do
+ run_podman pod create
+ done
+
+ # and delete them
+ $PODMAN pod rm -a &
+
+ # pod ps should not fail while pods are deleted
+ run_podman pod ps -q
+ # wait for pod rm -a
+ wait
}
# vim: filetype=sh