e2e: kube test: specify expected exit code

Let's make sure to always specify the expected exit codes, even in case
of failure.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2023-06-20 08:58:48 +02:00
parent 574e00d324
commit ddcefc9b9f

View File

@ -3665,7 +3665,7 @@ o: {{ .Options.o }}`})
kube := podmanTest.Podman([]string{"play", "kube", kubeYaml})
kube.WaitWithDefaultTimeout()
if IsRemote() {
Expect(kube).To(ExitWithError())
Expect(kube).Should(Exit(125))
Expect(kube.ErrorToString()).To(ContainSubstring("importing volumes is not supported for remote requests"))
return
}