aboutsummaryrefslogtreecommitdiff
path: root/test/e2e/run_working_dir_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-26 15:44:02 -0400
committerMatthew Heon <mheon@redhat.com>2021-03-29 11:43:32 -0400
commit1089f83a40af084d4a3c0a03f2279ff3f58c2b4c (patch)
treed573f7361fda5e816d73087ceadc26d64ecc5b62 /test/e2e/run_working_dir_test.go
parentbe02c8581cd2316bddc3007171f6057c63e95eb2 (diff)
downloadpodman-1089f83a40af084d4a3c0a03f2279ff3f58c2b4c.tar.gz
podman-1089f83a40af084d4a3c0a03f2279ff3f58c2b4c.tar.bz2
podman-1089f83a40af084d4a3c0a03f2279ff3f58c2b4c.zip
Fix podman build --pull-never
Currently pull policy is set incorrectly when users set --pull-never. Also pull-policy is not being translated correctly when using podman-remote. Fixes: #9573 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> <MH: Fixed cherry-pick conflict> Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'test/e2e/run_working_dir_test.go')
-rw-r--r--test/e2e/run_working_dir_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/run_working_dir_test.go b/test/e2e/run_working_dir_test.go
index 2d16cdc18..de0f55134 100644
--- a/test/e2e/run_working_dir_test.go
+++ b/test/e2e/run_working_dir_test.go
@@ -1,6 +1,7 @@
package integration
import (
+ "fmt"
"os"
. "github.com/containers/podman/v3/test/utils"
@@ -46,9 +47,9 @@ var _ = Describe("Podman run", func() {
})
It("podman run a container on an image with a workdir", func() {
- dockerfile := `FROM alpine
+ dockerfile := fmt.Sprintf(`FROM %s
RUN mkdir -p /home/foobar /etc/foobar; chown bin:bin /etc/foobar
-WORKDIR /etc/foobar`
+WORKDIR /etc/foobar`, ALPINE)
podmanTest.BuildImage(dockerfile, "test", "false")
session := podmanTest.Podman([]string{"run", "test", "pwd"})