Fix podman rm to have correct exit codes

If you attempt to remove a running container is it supposed to exit with
2
If you attempt to remove a non existing container is is supposed to exit with
1

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-04-22 11:50:52 -04:00
parent 7f1d00108e
commit 1be8ded964
2 changed files with 14 additions and 6 deletions

View File

@ -17,7 +17,6 @@ var _ = Describe("Podman rm", func() {
)
BeforeEach(func() {
Skip(v2fail)
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)