Skip to content

Commit

Permalink
Merge pull request #20142 from baude/wslenablerm
Browse files Browse the repository at this point in the history
wsl: machine tests for machine rm
  • Loading branch information
openshift-merge-robot authored Sep 25, 2023
2 parents f52e414 + cc4917d commit aebfde2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/machine/e2e/rm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"

"github.com/containers/podman/v4/pkg/machine"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gexec"
Expand Down Expand Up @@ -111,8 +112,12 @@ var _ = Describe("podman machine rm", func() {
Expect(err).ToNot(HaveOccurred())
_, err = os.Stat(pubkey)
Expect(err).ToNot(HaveOccurred())
_, err = os.Stat(ign)
Expect(err).ToNot(HaveOccurred())

// WSL does not use ignition
if testProvider.VMType() != machine.WSLVirt {
_, err = os.Stat(ign)
Expect(err).ToNot(HaveOccurred())
}
_, err = os.Stat(img)
Expect(err).ToNot(HaveOccurred())

Expand Down

0 comments on commit aebfde2

Please sign in to comment.