summaryrefslogtreecommitdiff
path: root/test/system/200-pod.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-30 16:54:00 +0100
committerGitHub <noreply@github.com>2020-10-30 16:54:00 +0100
commit6b5a94cf2831df0633cc03a28f432177c0ee1d7b (patch)
treeeff47a0f64811a5c8d98c2aa474a445d5a69e07e /test/system/200-pod.bats
parent3db54bacaa479bb4ef3bbdea724f892b08cd76d1 (diff)
parent916825b6753086d7712ba593e5381b9bd49aae96 (diff)
downloadpodman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.tar.gz
podman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.tar.bz2
podman-6b5a94cf2831df0633cc03a28f432177c0ee1d7b.zip
Merge pull request #8192 from rhatdan/shm
Pod's that share the IPC Namespace need to share /dev/shm
Diffstat (limited to 'test/system/200-pod.bats')
-rw-r--r--test/system/200-pod.bats24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats
index 1d17c8cad..b0f645c53 100644
--- a/test/system/200-pod.bats
+++ b/test/system/200-pod.bats
@@ -116,6 +116,30 @@ function teardown() {
run_podman 1 pod exists $podname
}
+@test "podman pod - communicating via /dev/shm " {
+ if is_remote && is_rootless; then
+ skip "FIXME: pending #7139"
+ fi
+
+ podname=pod$(random_string)
+ run_podman 1 pod exists $podname
+ run_podman pod create --infra=true --name=$podname
+ podid="$output"
+ run_podman pod exists $podname
+ run_podman pod exists $podid
+
+ run_podman run --rm --pod $podname $IMAGE touch /dev/shm/test1
+ run_podman run --rm --pod $podname $IMAGE ls /dev/shm/test1
+ is "$output" "/dev/shm/test1"
+
+ # ...then rm the pod, then rmi the pause image so we don't leave strays.
+ run_podman pod rm $podname
+
+ # Pod no longer exists
+ run_podman 1 pod exists $podid
+ run_podman 1 pod exists $podname
+}
+
# Random byte
function octet() {
echo $(( $RANDOM & 255 ))