mirror of
https://github.com/containers/podman.git
synced 2026-07-12 16:25:08 -04:00
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>
29 lines
510 B
Go
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
|
|
}
|