From 570e55fdfb1121c8eec0b9aa1fb2355c0be110a1 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 19 Aug 2019 12:13:57 +0200 Subject: test: fix return code check for missing workdir Signed-off-by: Giuseppe Scrivano --- test/e2e/exec_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/exec_test.go b/test/e2e/exec_test.go index 3f9639fda..a518a49fe 100644 --- a/test/e2e/exec_test.go +++ b/test/e2e/exec_test.go @@ -171,11 +171,11 @@ var _ = Describe("Podman exec", func() { session := podmanTest.Podman([]string{"exec", "--workdir", "/missing", "test1", "pwd"}) session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(1)) + Expect(session.ExitCode()).To(Not(Equal(0))) session = podmanTest.Podman([]string{"exec", "-w", "/missing", "test1", "pwd"}) session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(1)) + Expect(session.ExitCode()).To(Not(Equal(0))) }) It("podman exec cannot be invoked", func() { -- cgit v1.2.3-54-g00ecf