mirror of
https://github.com/containers/podman.git
synced 2025-10-11 16:26:00 +08:00
Merge pull request #26751 from Luap99/build-context-machine
pkg/machine/e2e: remove build context skip
This commit is contained in:
@ -249,7 +249,6 @@ var _ = Describe("run basic podman commands", func() {
|
||||
})
|
||||
|
||||
It("podman build contexts", func() {
|
||||
skipIfVmtype(define.HyperVVirt, "FIXME: #23429 - Error running podman build with option --build-context on Hyper-V")
|
||||
name := randomString()
|
||||
i := new(initMachine)
|
||||
session, err := mb.setName(name).setCmd(i.withImage(mb.imagePath).withNow()).run()
|
||||
@ -272,15 +271,6 @@ var _ = Describe("run basic podman commands", func() {
|
||||
|
||||
bm := basicMachine{}
|
||||
build, err := mb.setCmd(bm.withPodmanCommand([]string{"build", "-t", name, "--build-context", "test-context=" + additionalContextDir, mainContextDir})).run()
|
||||
|
||||
if build != nil && build.ExitCode() != 0 {
|
||||
output := build.outputToString() + build.errorToString()
|
||||
if strings.Contains(output, "multipart/form-data") &&
|
||||
strings.Contains(output, "not supported") {
|
||||
Skip("Build contexts with multipart/form-data are not supported on this version")
|
||||
}
|
||||
}
|
||||
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(build).To(Exit(0))
|
||||
Expect(build.outputToString()).To(ContainSubstring("COMMIT"))
|
||||
|
Reference in New Issue
Block a user