mirror of
				https://github.com/containers/podman.git
				synced 2025-11-01 02:42:11 +08:00 
			
		
		
		
	 33a474286b
			
		
	
	33a474286b
	
	
	
		
			
			Machine can only run on amd64 and arm64 platforms so we need to make sure the test are only run on those platforms. We do not have CI checks for this but it fails in debian build infra since debian supports many other architectures as well. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			472 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			472 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build (amd64 && !windows) || (arm64 && !windows)
 | |
| // +build amd64,!windows arm64,!windows
 | |
| 
 | |
| package qemu
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| 
 | |
| 	"github.com/stretchr/testify/require"
 | |
| )
 | |
| 
 | |
| func TestEditCmd(t *testing.T) {
 | |
| 	vm := new(MachineVM)
 | |
| 	vm.CmdLine = []string{"command", "-flag", "value"}
 | |
| 
 | |
| 	vm.editCmdLine("-flag", "newvalue")
 | |
| 	vm.editCmdLine("-anotherflag", "anothervalue")
 | |
| 
 | |
| 	require.Equal(t, vm.CmdLine, []string{"command", "-flag", "newvalue", "-anotherflag", "anothervalue"})
 | |
| }
 |