mirror of
https://github.com/containers/podman.git
synced 2025-10-29 17:06:22 +08:00
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
303 B
Go
17 lines
303 B
Go
package e2e
|
|
|
|
type stopMachine struct {
|
|
/*
|
|
No command line args other than a machine vm name (also not required)
|
|
*/
|
|
cmd []string
|
|
}
|
|
|
|
func (s stopMachine) buildCmd(m *machineTestBuilder) []string {
|
|
cmd := []string{"machine", "stop"}
|
|
if len(m.name) > 0 {
|
|
cmd = append(cmd, m.name)
|
|
}
|
|
return cmd
|
|
}
|