mirror of
				https://github.com/containers/podman.git
				synced 2025-11-01 02:42:11 +08:00 
			
		
		
		
	 33a92aa006
			
		
	
	33a92aa006
	
	
	
		
			
			This PR allows you to run the pkg/machine/e2e tests for the applehv PROVIDER. This does not mean they pass, only that they can run. There also appears to be leftover gvproxy processes at the conclusion of a single test. This will need to be corrected. [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			601 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			601 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
 | |
| 
 | |
| package e2e_test
 | |
| 
 | |
| import (
 | |
| 	"os/exec"
 | |
| 
 | |
| 	"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
 | |
| }
 | |
| 
 | |
| func pgrep(n string) (string, error) {
 | |
| 	out, err := exec.Command("pgrep", "gvproxy").Output()
 | |
| 	return string(out), err
 | |
| }
 |