mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
833456e079
This PR introduces a test suite for podman machine. It can currently be run on developers' local machines and is not part of the official CI testing; however, the expectation is that any work on machine should come with an accompanying test. At present, the test must be run on Linux. It is untested on Darwin. There is no Makefile target for the test. It can be run like `ginkgo -v pkg/machine/test/.`. It should be run as a unprivileged user. Signed-off-by: Brent Baude <bbaude@redhat.com>
17 lines
306 B
Go
17 lines
306 B
Go
package e2e
|
|
|
|
type startMachine struct {
|
|
/*
|
|
No command line args other than a machine vm name (also not required)
|
|
*/
|
|
cmd []string
|
|
}
|
|
|
|
func (s startMachine) buildCmd(m *machineTestBuilder) []string {
|
|
cmd := []string{"machine", "start"}
|
|
if len(m.name) > 0 {
|
|
cmd = append(cmd, m.name)
|
|
}
|
|
return cmd
|
|
}
|