summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-06-14 15:44:44 +0200
committerGitHub <noreply@github.com>2019-06-14 15:44:44 +0200
commit0ea95da7b9fcbcbe7e4ebab78f2950972c70ba68 (patch)
tree94f1f158a2bdbeecc0fe5a41b7f8474b657253a9 /test
parentd5f04e920bf0cca02c9efe25ceca7639cbf31644 (diff)
parent23efe4cb819b9fb306155ab25db7e2459aba63bb (diff)
downloadpodman-0ea95da7b9fcbcbe7e4ebab78f2950972c70ba68.tar.gz
podman-0ea95da7b9fcbcbe7e4ebab78f2950972c70ba68.tar.bz2
podman-0ea95da7b9fcbcbe7e4ebab78f2950972c70ba68.zip
Merge pull request #3315 from giuseppe/support-bind-nonrecursive
storage: support --mount type=bind,bind-nonrecursive
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 31720ea04..3ba3c2bb3 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -659,6 +659,14 @@ USER mail`
Expect(isSharedOnly).Should(BeTrue())
})
+ It("podman run --mount type=bind,bind-nonrecursive", func() {
+ SkipIfRootless()
+ session := podmanTest.Podman([]string{"run", "--mount", "type=bind,bind-nonrecursive,slave,src=/,target=/host", fedoraMinimal, "findmnt", "-nR", "/host"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(1))
+ })
+
It("podman run --pod automatically", func() {
session := podmanTest.Podman([]string{"run", "--pod", "new:foobar", ALPINE, "ls"})
session.WaitWithDefaultTimeout()