mirror of
https://github.com/containers/podman.git
synced 2025-07-03 01:08:02 +08:00
Remove log-level from runSystemCommand since wsl does not support it
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
This commit is contained in:
@ -236,10 +236,8 @@ func isWSL() bool {
|
|||||||
return isVmtype(define.WSLVirt)
|
return isVmtype(define.WSLVirt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unused
|
||||||
func runSystemCommand(binary string, cmdArgs []string, timeout time.Duration, wait bool) (*machineSession, error) {
|
func runSystemCommand(binary string, cmdArgs []string, timeout time.Duration, wait bool) (*machineSession, error) {
|
||||||
if len(os.Getenv("DEBUG")) > 0 {
|
|
||||||
cmdArgs = append([]string{"--log-level=debug"}, cmdArgs...)
|
|
||||||
}
|
|
||||||
GinkgoWriter.Println(binary + " " + strings.Join(cmdArgs, " "))
|
GinkgoWriter.Println(binary + " " + strings.Join(cmdArgs, " "))
|
||||||
c := exec.Command(binary, cmdArgs...)
|
c := exec.Command(binary, cmdArgs...)
|
||||||
session, err := Start(c, GinkgoWriter, GinkgoWriter)
|
session, err := Start(c, GinkgoWriter, GinkgoWriter)
|
||||||
|
@ -78,7 +78,7 @@ var _ = Describe("podman machine init - windows only", func() {
|
|||||||
Expect(session.errorToString()).To(ContainSubstring("already exists on hypervisor"))
|
Expect(session.errorToString()).To(ContainSubstring("already exists on hypervisor"))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("init should not should not overwrite existing HyperV vms", func() {
|
It("init should not overwrite existing WSL vms", func() {
|
||||||
skipIfNotVmtype(define.WSLVirt, "WSL test only")
|
skipIfNotVmtype(define.WSLVirt, "WSL test only")
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Reference in New Issue
Block a user