summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-11-27 03:29:17 -0800
committerGitHub <noreply@github.com>2018-11-27 03:29:17 -0800
commit049defa98426c50dab781c0493d54aca00a7fbb8 (patch)
treeb42297bbcee5e0028b636a6453d677e04fe7070a /test
parent1d3e24239aa525640bcc9cef4864fb04d69143ed (diff)
parent0e2042ebd72c0053513ea4979926e071e1eefddc (diff)
downloadpodman-049defa98426c50dab781c0493d54aca00a7fbb8.tar.gz
podman-049defa98426c50dab781c0493d54aca00a7fbb8.tar.bz2
podman-049defa98426c50dab781c0493d54aca00a7fbb8.zip
Merge pull request #1850 from vrothberg/mount-propagation
set root propagation based on volume properties
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index beb408fd4..ff166f466 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -609,7 +609,10 @@ USER mail`
session := podmanTest.Podman([]string{"run", "--volume", vol1 + ":/myvol1:z", "--volume", vol2 + ":/myvol2:shared,z", fedoraMinimal, "findmnt", "-o", "TARGET,PROPAGATION"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- match, _ := session.GrepString("shared")
+ match, shared := session.GrepString("shared")
Expect(match).Should(BeTrue())
+ // make sure it's only shared (and not 'shared,slave')
+ isSharedOnly := !strings.Contains(shared[0], "shared,")
+ Expect(isSharedOnly).Should(BeTrue())
})
})