summaryrefslogtreecommitdiff
path: root/test/e2e/push_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-07-08 09:51:56 -0500
committerbaude <bbaude@redhat.com>2019-07-08 12:31:31 -0500
commitc187da23c49876f23a5b2fc0f4d94bedd44482e6 (patch)
treed55f693adcc13fc287b8fb3e4eb0a0c96ed07f74 /test/e2e/push_test.go
parent3fdf1a2c447ac3b26ae51e266ca4a781da30a5c1 (diff)
downloadpodman-c187da23c49876f23a5b2fc0f4d94bedd44482e6.tar.gz
podman-c187da23c49876f23a5b2fc0f4d94bedd44482e6.tar.bz2
podman-c187da23c49876f23a5b2fc0f4d94bedd44482e6.zip
speed up rootless tests
when running integrations tests as rootless, several tests still unnecessarily pull images which is costly in terms of time. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/push_test.go')
-rw-r--r--test/e2e/push_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/e2e/push_test.go b/test/e2e/push_test.go
index de2416868..cf6279f2f 100644
--- a/test/e2e/push_test.go
+++ b/test/e2e/push_test.go
@@ -8,6 +8,7 @@ import (
"path/filepath"
"strings"
+ "github.com/containers/libpod/pkg/rootless"
. "github.com/containers/libpod/test/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
@@ -59,6 +60,9 @@ var _ = Describe("Podman push", func() {
if podmanTest.Host.Arch == "ppc64le" {
Skip("No registry image for ppc64le")
}
+ if rootless.IsRootless() {
+ podmanTest.RestoreArtifact(registry)
+ }
lock := GetPortLock("5000")
defer lock.Unlock()
session := podmanTest.PodmanNoCache([]string{"run", "-d", "--name", "registry", "-p", "5000:5000", registry, "/entrypoint.sh", "/etc/docker/registry/config.yml"})