diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-09-27 17:22:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-27 17:22:48 +0200 |
commit | a8c2b5dee4b746c2e83970603ff2645008d54b95 (patch) | |
tree | 90a26ad83414e451a136cc542a9eb07ec5975173 /libpod/image/image_test.go | |
parent | 92e1b661ff5fba140ba07dd2c956e5aede90e9b5 (diff) | |
parent | 65b20bd521302020ff229d455c60102e15a41b8a (diff) | |
download | podman-a8c2b5dee4b746c2e83970603ff2645008d54b95.tar.gz podman-a8c2b5dee4b746c2e83970603ff2645008d54b95.tar.bz2 podman-a8c2b5dee4b746c2e83970603ff2645008d54b95.zip |
Merge pull request #4127 from nalind/reexec-use
Correct use of reexec.Init()
Diffstat (limited to 'libpod/image/image_test.go')
-rw-r--r-- | libpod/image/image_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libpod/image/image_test.go b/libpod/image/image_test.go index 5a6d095f6..ef39d09c3 100644 --- a/libpod/image/image_test.go +++ b/libpod/image/image_test.go @@ -11,6 +11,7 @@ import ( "github.com/containers/libpod/libpod/events" "github.com/containers/libpod/pkg/util" "github.com/containers/storage" + "github.com/containers/storage/pkg/reexec" "github.com/opencontainers/go-digest" "github.com/stretchr/testify/assert" ) @@ -70,6 +71,13 @@ func makeLocalMatrix(b, bg *Image) ([]localImageTest, error) { } +func TestMain(m *testing.M) { + if reexec.Init() { + return + } + os.Exit(m.Run()) +} + // TestImage_NewFromLocal tests finding the image locally by various names, // tags, and aliases func TestImage_NewFromLocal(t *testing.T) { |