Files
podman/pkg/machine/e2e/config_start_test.go
Paul Holzinger 9eca92d625 update golangci-lint to v1.62.0
- fix issues found by recvcheck
- skip k8s files from recvcheck
- remove two removed linters gomnd and execinquery

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-11 14:21:17 +01:00

34 lines
585 B
Go

package e2e_test
type startMachine struct {
/*
No command line args other than a machine vm name (also not required)
*/
quiet bool
noInfo bool
}
func (s *startMachine) buildCmd(m *machineTestBuilder) []string {
cmd := []string{"machine", "start"}
if len(m.name) > 0 {
cmd = append(cmd, m.name)
}
if s.quiet {
cmd = append(cmd, "--quiet")
}
if s.noInfo {
cmd = append(cmd, "--no-info")
}
return cmd
}
func (s *startMachine) withQuiet() *startMachine {
s.quiet = true
return s
}
func (s *startMachine) withNoInfo() *startMachine {
s.noInfo = true
return s
}