summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-11-12 16:11:30 +0100
committerGitHub <noreply@github.com>2020-11-12 16:11:30 +0100
commit39e3ec767ae045a5413d1cacb76359cc2e7c44ee (patch)
tree5ce3a330361acdea64f2b67bdde112928e5a6be9 /test
parent6c2503ca04d0224a22ae687337436a3ffeb6579d (diff)
parent0f637e09da85b2aaefa279cfb571b004a2cc6d59 (diff)
downloadpodman-39e3ec767ae045a5413d1cacb76359cc2e7c44ee.tar.gz
podman-39e3ec767ae045a5413d1cacb76359cc2e7c44ee.tar.bz2
podman-39e3ec767ae045a5413d1cacb76359cc2e7c44ee.zip
Merge pull request #8307 from mheon/fix_8221
Ensure we do not double-lock the same volume in create
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_volume_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go
index 1c8a67123..7c74cea78 100644
--- a/test/e2e/run_volume_test.go
+++ b/test/e2e/run_volume_test.go
@@ -540,4 +540,12 @@ VOLUME /test/`
session = podmanTest.Podman([]string{"run", "--rm", "-v", fmt.Sprintf("%s:%s:O", mountPath, mountDest), "--mount", fmt.Sprintf("type=tmpfs,target=%s", mountDest), ALPINE})
Expect(session.ExitCode()).To(Not(Equal(0)))
})
+
+ It("same volume in multiple places does not deadlock", func() {
+ volName := "testVol1"
+ session := podmanTest.Podman([]string{"run", "-t", "-i", "-v", fmt.Sprintf("%s:/test1", volName), "-v", fmt.Sprintf("%s:/test2", volName), "--rm", ALPINE, "sh", "-c", "mount | grep /test"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(2))
+ })
})