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>
This commit is contained in:
Giuseppe Scrivano
2018-11-10 21:49:33 +01:00
parent effd63d6d5
commit f7d972a70f

View File

@ -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")
})