Files
podman/pkg/machine/e2e/config_os_apply_test.go
Brent Baude 48d36932e2 Error on WSL machine os apply|upgrade
Given that apply and upgrade do not work on WSL, we should error out
with an error as such.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-03-23 10:01:53 -05:00

29 lines
510 B
Go

package e2e_test
type applyMachineOS struct {
imageName string
restart bool
cmd []string
}
func (a *applyMachineOS) buildCmd(m *machineTestBuilder) []string {
cmd := []string{"machine", "os", "apply"}
if a.restart {
cmd = append(cmd, "--restart")
}
cmd = append(cmd, a.imageName, m.name)
a.cmd = cmd
return cmd
}
func (a *applyMachineOS) withRestart() *applyMachineOS {
a.restart = true
return a
}
func (a *applyMachineOS) withImage(i string) *applyMachineOS {
a.imageName = i
return a
}