summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-24 19:15:46 +0100
committerGitHub <noreply@github.com>2022-03-24 19:15:46 +0100
commit7934b77dd5372c22063686a218b8b48c2fcaca8c (patch)
tree9226a17c181be5987bc9d8c7ec3cb3b3c15f9e17 /test/e2e
parente657c7a170f3ed35d56d099c5c7c15c84374c4f2 (diff)
parent5e1e13c18c22e2cd43021cb647eda328324f6c96 (diff)
downloadpodman-7934b77dd5372c22063686a218b8b48c2fcaca8c.tar.gz
podman-7934b77dd5372c22063686a218b8b48c2fcaca8c.tar.bz2
podman-7934b77dd5372c22063686a218b8b48c2fcaca8c.zip
Merge pull request #13531 from cdoern/build
Add Context Directory to tar
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/build_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/build_test.go b/test/e2e/build_test.go
index c5903f037..096c98727 100644
--- a/test/e2e/build_test.go
+++ b/test/e2e/build_test.go
@@ -734,10 +734,11 @@ RUN ls /dev/test1`, ALPINE)
err = os.Mkdir("relative", 0755)
Expect(err).To(BeNil())
containerFilePath := filepath.Join("relative", "Containerfile")
- fmt.Println(containerFilePath)
+ err = os.Mkdir("relative/build-root", 0755)
+ Expect(err).To(BeNil())
err = ioutil.WriteFile(containerFilePath, []byte(containerFile), 0755)
Expect(err).To(BeNil())
- build := podmanTest.Podman([]string{"build", "-f", "./relative/Containerfile"})
+ build := podmanTest.Podman([]string{"build", "-f", "./relative/Containerfile", "./relative/build-root"})
build.WaitWithDefaultTimeout()
Expect(build).To(Exit(0))
err = os.RemoveAll("relative")