summaryrefslogtreecommitdiff
path: root/cmd/podman/machine
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2022-04-02 15:25:19 -0500
committerBrent Baude <bbaude@redhat.com>2022-04-25 13:05:35 -0500
commit833456e079c31111a15fedaa3ccd7f852e89e508 (patch)
tree4e06007f5bec3c1cdc763a6b879ecebca5d75a29 /cmd/podman/machine
parent6984a0f35704204fa15374aa2c133c4e6e0b366f (diff)
downloadpodman-833456e079c31111a15fedaa3ccd7f852e89e508.tar.gz
podman-833456e079c31111a15fedaa3ccd7f852e89e508.tar.bz2
podman-833456e079c31111a15fedaa3ccd7f852e89e508.zip
Add podman machine test suite
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>
Diffstat (limited to 'cmd/podman/machine')
-rw-r--r--cmd/podman/machine/init.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd/podman/machine/init.go b/cmd/podman/machine/init.go
index 2d0afbf05..4991c6aa3 100644
--- a/cmd/podman/machine/init.go
+++ b/cmd/podman/machine/init.go
@@ -135,7 +135,6 @@ func initMachine(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
-
if finished, err := vm.Init(initOpts); err != nil || !finished {
// Finished = true, err = nil - Success! Log a message with further instructions
// Finished = false, err = nil - The installation is partially complete and podman should
@@ -144,7 +143,6 @@ func initMachine(cmd *cobra.Command, args []string) error {
// - a user has chosen to perform their own reboot
// - reexec for limited admin operations, returning to parent
// Finished = *, err != nil - Exit with an error message
-
return err
}
fmt.Println("Machine init complete")