summaryrefslogtreecommitdiff
path: root/test/e2e/build_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-22 06:29:32 -0500
committerGitHub <noreply@github.com>2021-02-22 06:29:32 -0500
commit10d52c05e23e75b9c608e100999cb55334732525 (patch)
tree05d975ca6979e6aba836c1bdacfc74eeaaf24850 /test/e2e/build_test.go
parentd92b94677cc816a1e157802836195430b731d015 (diff)
parent690c02f602eae68335192a202ba01c8097abf111 (diff)
downloadpodman-10d52c05e23e75b9c608e100999cb55334732525.tar.gz
podman-10d52c05e23e75b9c608e100999cb55334732525.tar.bz2
podman-10d52c05e23e75b9c608e100999cb55334732525.zip
Merge pull request #9275 from rhatdan/build
Add missing params for podman-remote build
Diffstat (limited to 'test/e2e/build_test.go')
-rw-r--r--test/e2e/build_test.go27
1 files changed, 25 insertions, 2 deletions
diff --git a/test/e2e/build_test.go b/test/e2e/build_test.go
index aa9b76c99..c733db61c 100644
--- a/test/e2e/build_test.go
+++ b/test/e2e/build_test.go
@@ -489,7 +489,7 @@ RUN grep CapEff /proc/self/status`
To(ContainElement("0000000000000400"))
})
- It("podman build --arch", func() {
+ It("podman build --isolation && --arch", func() {
targetPath, err := CreateTempDirInTempDir()
Expect(err).To(BeNil())
@@ -502,11 +502,34 @@ RUN grep CapEff /proc/self/status`
// When
session := podmanTest.Podman([]string{
- "build", "--arch", "arm64", targetPath,
+ "build", "--isolation", "oci", "--arch", "arm64", targetPath,
})
session.WaitWithDefaultTimeout()
+ // Then
+ Expect(session.ExitCode()).To(Equal(0))
+ // When
+ session = podmanTest.Podman([]string{
+ "build", "--isolation", "chroot", "--arch", "arm64", targetPath,
+ })
+ session.WaitWithDefaultTimeout()
// Then
Expect(session.ExitCode()).To(Equal(0))
+
+ // When
+ session = podmanTest.Podman([]string{
+ "build", "--isolation", "rootless", "--arch", "arm64", targetPath,
+ })
+ session.WaitWithDefaultTimeout()
+ // Then
+ Expect(session.ExitCode()).To(Equal(0))
+
+ // When
+ session = podmanTest.Podman([]string{
+ "build", "--isolation", "bogus", "--arch", "arm64", targetPath,
+ })
+ session.WaitWithDefaultTimeout()
+ // Then
+ Expect(session.ExitCode()).To(Equal(125))
})
})