From d0caf90940943a7fbf80b27ec59adcdd501fa49e Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 22 Apr 2020 09:51:00 -0700 Subject: V2 Restore exists E2E tests * Fix setting exit code in */exists.go Signed-off-by: Jhon Honce --- cmd/podman/images/exists.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd/podman/images/exists.go') diff --git a/cmd/podman/images/exists.go b/cmd/podman/images/exists.go index 0bb288b96..6464e6cd8 100644 --- a/cmd/podman/images/exists.go +++ b/cmd/podman/images/exists.go @@ -1,8 +1,6 @@ package images import ( - "os" - "github.com/containers/libpod/cmd/podman/registry" "github.com/containers/libpod/pkg/domain/entities" "github.com/spf13/cobra" @@ -34,7 +32,7 @@ func exists(cmd *cobra.Command, args []string) error { return err } if !found.Value { - os.Exit(1) + registry.SetExitCode(1) } return nil } -- cgit v1.2.3-54-g00ecf