Merge pull request #26751 from Luap99/build-context-machine

pkg/machine/e2e: remove build context skip
This commit is contained in:
openshift-merge-bot[bot]
2025-08-06 08:13:04 +00:00
committed by GitHub

View File

@ -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"))