mirror of
https://github.com/containers/podman.git
synced 2025-07-28 19:02:48 +08:00
Enable machine e2e tests for WSL
this pr allows us to run the machine e2e tests with the wsl provider. [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
22
pkg/machine/e2e/config_unix_test.go
Normal file
22
pkg/machine/e2e/config_unix_test.go
Normal file
@ -0,0 +1,22 @@
|
||||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
|
||||
|
||||
package e2e_test
|
||||
|
||||
import (
|
||||
"github.com/containers/podman/v4/pkg/machine"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
)
|
||||
|
||||
func getDownloadLocation(p machine.VirtProvider) string {
|
||||
dd, err := p.NewDownload("")
|
||||
if err != nil {
|
||||
Fail("unable to create new download")
|
||||
}
|
||||
|
||||
fcd, err := dd.GetFCOSDownload(defaultStream)
|
||||
if err != nil {
|
||||
Fail("unable to get virtual machine image")
|
||||
}
|
||||
|
||||
return fcd.Location
|
||||
}
|
Reference in New Issue
Block a user