github.com/containers/podman/v4@v4.9.4/pkg/machine/e2e/config_unix_test.go (about) 1 //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd 2 3 package e2e_test 4 5 import ( 6 "os/exec" 7 8 "github.com/containers/podman/v4/pkg/machine" 9 . "github.com/onsi/ginkgo/v2" 10 ) 11 12 func getDownloadLocation(p machine.VirtProvider) string { 13 dd, err := p.NewDownload("") 14 if err != nil { 15 Fail("unable to create new download") 16 } 17 18 fcd, err := dd.GetFCOSDownload(defaultStream) 19 if err != nil { 20 Fail("unable to get virtual machine image") 21 } 22 23 return fcd.Location 24 } 25 26 func pgrep(n string) (string, error) { 27 out, err := exec.Command("pgrep", "gvproxy").Output() 28 return string(out), err 29 }