skip checking mode on macOS

pull/12930/head
Steven Powell 2021-12-10 15:12:00 -08:00
parent f8028bcb72
commit 3ad2f8d851
1 changed files with 13 additions and 9 deletions

View File

@ -23,6 +23,7 @@ import (
"context" "context"
"fmt" "fmt"
"os/exec" "os/exec"
"runtime"
"strings" "strings"
"testing" "testing"
) )
@ -108,6 +109,8 @@ func validateMount(ctx context.Context, t *testing.T, profile string) {
return return
} }
// skipping macOS due to https://github.com/kubernetes/minikube/issues/13070
if runtime.GOOS != "darwin" {
args = sshArgs args = sshArgs
args = append(args, "stat", "--format", "'%a'", "/minikube-host") args = append(args, "stat", "--format", "'%a'", "/minikube-host")
rr, err = Run(t, exec.CommandContext(ctx, Target(), args...)) rr, err = Run(t, exec.CommandContext(ctx, Target(), args...))
@ -119,6 +122,7 @@ func validateMount(ctx context.Context, t *testing.T, profile string) {
if !strings.Contains(rr.Output(), want) { if !strings.Contains(rr.Output(), want) {
t.Errorf("wanted mode to be %q; got: %q", want, rr.Output()) t.Errorf("wanted mode to be %q; got: %q", want, rr.Output())
} }
}
// We can't get the mount details with Hyper-V // We can't get the mount details with Hyper-V
if HyperVDriver() { if HyperVDriver() {