From cc4917d81d9873baa35b0b83d0a1061e9e577482 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Mon, 25 Sep 2023 16:21:35 -0500 Subject: [PATCH] wsl: machine tests WSL does not use ignition therefore the test for the file is invalid. Signed-off-by: Brent Baude --- pkg/machine/e2e/rm_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/machine/e2e/rm_test.go b/pkg/machine/e2e/rm_test.go index c479292985..8439632f47 100644 --- a/pkg/machine/e2e/rm_test.go +++ b/pkg/machine/e2e/rm_test.go @@ -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" @@ -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())