mirror of
https://github.com/containers/podman.git
synced 2025-05-31 07:27:13 +08:00
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:
@ -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")
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user