mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +08:00
Change exit code to 1 on podman rmi nosuch image
Make it easy for scripts to determine if an image removal failure. If only errors were no such image exit with 1 versus 125. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -36,7 +36,7 @@ var _ = Describe("Podman rmi", func() {
|
||||
It("podman rmi bogus image", func() {
|
||||
session := podmanTest.Podman([]string{"rmi", "debian:6.0.10"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(125))
|
||||
Expect(session.ExitCode()).To(Equal(1))
|
||||
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user