summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorYiqiao Pu <ypu@redhat.com>2018-10-29 14:56:33 +0800
committerYiqiao Pu <ypu@redhat.com>2018-11-16 10:49:24 +0800
commitaaa31bbb1a23c4cce6e4666821b8ca4f461b63e4 (patch)
treed607400a4a8df85d911d540f99b89965a97a8776 /test/e2e
parenta7122d68de0d93ea22da4f44e7f92c75198af771 (diff)
downloadpodman-aaa31bbb1a23c4cce6e4666821b8ca4f461b63e4.tar.gz
podman-aaa31bbb1a23c4cce6e4666821b8ca4f461b63e4.tar.bz2
podman-aaa31bbb1a23c4cce6e4666821b8ca4f461b63e4.zip
Fix no-new-privileges test
Update the test to compare the output from different containers. Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_privileged_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/run_privileged_test.go b/test/e2e/run_privileged_test.go
index 4bbcff204..770ea3e6b 100644
--- a/test/e2e/run_privileged_test.go
+++ b/test/e2e/run_privileged_test.go
@@ -104,12 +104,12 @@ var _ = Describe("Podman privileged container tests", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- privs := strings.Split(cap.OutputToString(), ":")
+ privs := strings.Split(session.OutputToString(), ":")
session = podmanTest.Podman([]string{"run", "--security-opt", "no-new-privileges", "busybox", "grep", "NoNewPrivs", "/proc/self/status"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- noprivs := strings.Split(cap.OutputToString(), ":")
+ noprivs := strings.Split(session.OutputToString(), ":")
Expect(privs[1]).To(Not(Equal(noprivs[1])))
})