summaryrefslogtreecommitdiff
path: root/test/e2e/run_volume_test.go
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2020-03-30 19:09:50 -0700
committerKir Kolyshkin <kolyshkin@gmail.com>2020-04-02 10:17:10 -0700
commit504f9082ee0b4d68b0cdb4b7b319795cd0e43a63 (patch)
tree732d1ba524c7be9da59c67e0995ada58feb0f3fc /test/e2e/run_volume_test.go
parentce38be795903e3f9d16d3d73a0ccee68c353013e (diff)
downloadpodman-504f9082ee0b4d68b0cdb4b7b319795cd0e43a63.tar.gz
podman-504f9082ee0b4d68b0cdb4b7b319795cd0e43a63.tar.bz2
podman-504f9082ee0b4d68b0cdb4b7b319795cd0e43a63.zip
test/e2e/run_volume_test.go: mv dockerfile decl
Move declaration of a dockerfile closer to its use. Since it is used only once, there's no sense in having it declared globally. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'test/e2e/run_volume_test.go')
-rw-r--r--test/e2e/run_volume_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go
index 6377733ec..0c0a88077 100644
--- a/test/e2e/run_volume_test.go
+++ b/test/e2e/run_volume_test.go
@@ -15,10 +15,6 @@ import (
"github.com/onsi/gomega/gexec"
)
-var VolumeTrailingSlashDockerfile = `
-FROM alpine:latest
-VOLUME /test/`
-
var _ = Describe("Podman run with volumes", func() {
var (
tempdir string
@@ -426,7 +422,10 @@ var _ = Describe("Podman run with volumes", func() {
It("Podman mount over image volume with trailing /", func() {
image := "podman-volume-test:trailing"
- podmanTest.BuildImage(VolumeTrailingSlashDockerfile, image, "false")
+ dockerfile := `
+FROM alpine:latest
+VOLUME /test/`
+ podmanTest.BuildImage(dockerfile, image, "false")
ctrName := "testCtr"
create := podmanTest.Podman([]string{"create", "-v", "/tmp:/test", "--name", ctrName, image, "ls"})