mirror of
https://github.com/containers/podman.git
synced 2025-06-24 11:28:24 +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 {
|
||||
defer os.Unsetenv("TMPDIR")
|
||||
}
|
||||
if IsRemote() {
|
||||
podmanTest.RestartRemoteService()
|
||||
}
|
||||
|
||||
session := podmanTest.Podman([]string{"info", "--format", "{{.Store.ImageCopyTmpDir}}"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
|
@ -94,7 +94,7 @@ var _ = Describe("Podman unshare", func() {
|
||||
SkipIfNotRemote("check for podman-remote unshare error")
|
||||
session := podmanTest.Podman([]string{"unshare"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
Expect(session.OutputToString()).To(Equal(`Error: cannot use command "podman-remote unshare" with the remote podman client`))
|
||||
Expect(session).Should(Exit(125))
|
||||
Expect(session.ErrorToString()).To(Equal(`Error: cannot use command "podman-remote unshare" with the remote podman client`))
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user