summaryrefslogtreecommitdiff
path: root/test/e2e/volume_create_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-13 11:00:48 +0200
committerGitHub <noreply@github.com>2022-05-13 11:00:48 +0200
commit6ecf33a4cdf93f0e190846e607ca239b692ec7e3 (patch)
tree44ae74ec2e1f7694290e9243bead6ffb6a0025d7 /test/e2e/volume_create_test.go
parent9cf38a0afbb2619b6eeacce7fade451b38e5bab6 (diff)
parentb8103640a26e807825e302a3eb025fdf6023ba29 (diff)
downloadpodman-6ecf33a4cdf93f0e190846e607ca239b692ec7e3.tar.gz
podman-6ecf33a4cdf93f0e190846e607ca239b692ec7e3.tar.bz2
podman-6ecf33a4cdf93f0e190846e607ca239b692ec7e3.zip
Merge pull request #14227 from rhatdan/test
Make sure tests are cleaned up when they complete
Diffstat (limited to 'test/e2e/volume_create_test.go')
-rw-r--r--test/e2e/volume_create_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/e2e/volume_create_test.go b/test/e2e/volume_create_test.go
index 09e5da8a0..0bf5acbf1 100644
--- a/test/e2e/volume_create_test.go
+++ b/test/e2e/volume_create_test.go
@@ -3,6 +3,7 @@ package integration
import (
"fmt"
"os"
+ "path/filepath"
. "github.com/containers/podman/v4/test/utils"
. "github.com/onsi/ginkgo"
@@ -90,7 +91,8 @@ var _ = Describe("Podman volume create", func() {
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- session = podmanTest.Podman([]string{"volume", "export", volName, "--output=hello.tar"})
+ helloTar := filepath.Join(podmanTest.TempDir, "hello.tar")
+ session = podmanTest.Podman([]string{"volume", "export", volName, "--output", helloTar})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
@@ -98,7 +100,7 @@ var _ = Describe("Podman volume create", func() {
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- session = podmanTest.Podman([]string{"volume", "import", "my_vol2", "hello.tar"})
+ session = podmanTest.Podman([]string{"volume", "import", "my_vol2", helloTar})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.OutputToString()).To(Equal(""), "output of volume import")