summaryrefslogtreecommitdiff
path: root/test/e2e/run_test.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-11-10 21:49:33 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2018-11-28 16:25:12 +0100
commitf7d972a70f91a85a5630186e448e7012dc0b8c53 (patch)
tree2e58a20b8c09f6b3d686db4fdcf1a4fd160d0df8 /test/e2e/run_test.go
parenteffd63d6d5c2541f09745261a1e9205fa531e526 (diff)
downloadpodman-f7d972a70f91a85a5630186e448e7012dc0b8c53.tar.gz
podman-f7d972a70f91a85a5630186e448e7012dc0b8c53.tar.bz2
podman-f7d972a70f91a85a5630186e448e7012dc0b8c53.zip
test: fix test for NOTIFY_SOCKET
do not make any assumption on the path inside of the container. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r--test/e2e/run_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 4ed1fbed7..85f8df246 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -292,8 +292,7 @@ var _ = Describe("Podman run", func() {
session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "printenv", "NOTIFY_SOCKET"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- match, _ := session.GrepString(sock)
- Expect(match).Should(BeTrue())
+ Expect(len(session.OutputToStringArray())).To(BeNumerically(">", 0))
os.Unsetenv("NOTIFY_SOCKET")
})