From 949d292567854ab74d4c2c6927ba96c1ae95d9c4 Mon Sep 17 00:00:00 2001
From: baude <bbaude@redhat.com>
Date: Mon, 22 Oct 2018 15:02:37 -0500
Subject: [PATCH] Use restoreArtifacts to save time in integration tests

Signed-off-by: baude <bbaude@redhat.com>
---
 test/e2e/exec_test.go | 1 +
 test/e2e/run_test.go  | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/test/e2e/exec_test.go b/test/e2e/exec_test.go
index cfdc819a6f..250e087046 100644
--- a/test/e2e/exec_test.go
+++ b/test/e2e/exec_test.go
@@ -111,6 +111,7 @@ var _ = Describe("Podman exec", func() {
 	})
 
 	It("podman exec with user only in container", func() {
+		podmanTest.RestoreArtifact(fedoraMinimal)
 		testUser := "test123"
 		setup := podmanTest.Podman([]string{"run", "--name", "test1", "-d", fedoraMinimal, "sleep", "60"})
 		setup.WaitWithDefaultTimeout()
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 1cd2fdf2c4..cb436cccad 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -577,6 +577,7 @@ USER mail`
 	})
 
 	It("podman run findmnt nothing shared", func() {
+		podmanTest.RestoreArtifact(fedoraMinimal)
 		vol1 := filepath.Join(podmanTest.TempDir, "vol-test1")
 		err := os.MkdirAll(vol1, 0755)
 		Expect(err).To(BeNil())
@@ -592,6 +593,7 @@ USER mail`
 	})
 
 	It("podman run findmnt shared", func() {
+		podmanTest.RestoreArtifact(fedoraMinimal)
 		vol1 := filepath.Join(podmanTest.TempDir, "vol-test1")
 		err := os.MkdirAll(vol1, 0755)
 		Expect(err).To(BeNil())