mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
e2e: fix some tests on remote
- podman-remote unshare returns an error message with the exit code '125'. - Need to run RestartRemoteService() to apply changes to the TMPDIR. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
@ -426,6 +426,9 @@ var _ = Describe("Verify podman containers.conf usage", func() {
|
|||||||
} else {
|
} else {
|
||||||
defer os.Unsetenv("TMPDIR")
|
defer os.Unsetenv("TMPDIR")
|
||||||
}
|
}
|
||||||
|
if IsRemote() {
|
||||||
|
podmanTest.RestartRemoteService()
|
||||||
|
}
|
||||||
|
|
||||||
session := podmanTest.Podman([]string{"info", "--format", "{{.Store.ImageCopyTmpDir}}"})
|
session := podmanTest.Podman([]string{"info", "--format", "{{.Store.ImageCopyTmpDir}}"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
|
@ -94,7 +94,7 @@ var _ = Describe("Podman unshare", func() {
|
|||||||
SkipIfNotRemote("check for podman-remote unshare error")
|
SkipIfNotRemote("check for podman-remote unshare error")
|
||||||
session := podmanTest.Podman([]string{"unshare"})
|
session := podmanTest.Podman([]string{"unshare"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(125))
|
||||||
Expect(session.OutputToString()).To(Equal(`Error: cannot use command "podman-remote unshare" with the remote podman client`))
|
Expect(session.ErrorToString()).To(Equal(`Error: cannot use command "podman-remote unshare" with the remote podman client`))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user