diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-19 12:13:57 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-08-19 13:41:41 +0200 |
commit | 570e55fdfb1121c8eec0b9aa1fb2355c0be110a1 (patch) | |
tree | 112b06b07c9c99e3d8f2426fdfa7f7b46d05671d /test/e2e | |
parent | faac765dcae20d958047f6700ad466d1b9a31c00 (diff) | |
download | podman-570e55fdfb1121c8eec0b9aa1fb2355c0be110a1.tar.gz podman-570e55fdfb1121c8eec0b9aa1fb2355c0be110a1.tar.bz2 podman-570e55fdfb1121c8eec0b9aa1fb2355c0be110a1.zip |
test: fix return code check for missing workdir
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/exec_test.go | 4 |
1 files 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() { |