summaryrefslogtreecommitdiff
path: root/pkg/machine/e2e/config_basic.go
blob: be0896156767982dd49d5bd778c6fb62fbdd30f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package e2e

type basicMachine struct {
	args []string
	cmd  []string
}

func (s basicMachine) buildCmd(m *machineTestBuilder) []string {
	cmd := []string{"-r"}
	if len(s.args) > 0 {
		cmd = append(cmd, s.args...)
	}
	return cmd
}

func (s *basicMachine) withPodmanCommand(args []string) *basicMachine {
	s.args = args
	return s
}