mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
Merge pull request #20142 from baude/wslenablerm
wsl: machine tests for machine rm
This commit is contained in:
@ -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())
|
||||
|
||||
|
Reference in New Issue
Block a user