diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-05-12 16:31:11 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-05-12 16:31:13 -0400 |
commit | b8103640a26e807825e302a3eb025fdf6023ba29 (patch) | |
tree | 5b97e8c5813a0509bb402e8931104d9a5585233a /test/e2e/volume_create_test.go | |
parent | 86314850511af5ab485a49eff9ab02c71736eb47 (diff) | |
download | podman-b8103640a26e807825e302a3eb025fdf6023ba29.tar.gz podman-b8103640a26e807825e302a3eb025fdf6023ba29.tar.bz2 podman-b8103640a26e807825e302a3eb025fdf6023ba29.zip |
Make sure tests are cleaned up when they complete
Fixes: https://github.com/containers/podman/issues/13789
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/volume_create_test.go')
-rw-r--r-- | test/e2e/volume_create_test.go | 6 |
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") |